package diag

import "github.com/Azure/azure-sdk-for-go/sdk/internal/diag"

Index

Functions

func Caller

func Caller(skipFrames int) string

Caller returns the file and line number of a frame on the caller's stack. If the funtion fails an empty string is returned. skipFrames - the number of frames to skip when determining the caller. Passing a value of 0 will return the immediate caller of this function.

func StackTrace

func StackTrace(skipFrames, totalFrames int) string

StackTrace returns a formatted stack trace string. If the funtion fails an empty string is returned. skipFrames - the number of stack frames to skip before composing the trace string. totalFrames - the maximum number of stack frames to include in the trace string.

Source Files

diag.go doc.go

Version
v1.11.1 (latest)
Published
Apr 7, 2025
Platform
js/wasm
Imports
3 packages
Last checked
8 minutes ago

Tools for package owners.