Deprecated: use github.com/Azure/azure-sdk-for-go/sdk/azcore/tracing instead.
package tracing
import "github.com/Azure/go-autorest/tracing"
Index ¶
- Variables
- func Disable()
- func Enable() error
- func EnableWithAIForwarding(agentEndpoint string) (err error)
- func EndSpan(ctx context.Context, httpStatusCode int, err error)
- func IsEnabled() bool
- func NewTransport() *ochttp.Transport
- func StartSpan(ctx context.Context, name string) context.Context
Variables ¶
var ( // Transport is the default tracing RoundTripper. The custom options setter will control // if traces are being emitted or not. Transport = NewTransport() )
Functions ¶
func Disable ¶
func Disable()
Disable will disable instrumentation for metrics and traces.
func Enable ¶
func Enable() error
Enable will start instrumentation for metrics and traces.
func EnableWithAIForwarding ¶
EnableWithAIForwarding will start instrumentation and will connect to app insights forwarder exporter making the metrics and traces available in app insights.
func EndSpan ¶
EndSpan ends a previously started span stored in the context
func IsEnabled ¶
func IsEnabled() bool
IsEnabled returns true if monitoring is enabled for the sdk.
func NewTransport ¶
NewTransport returns a new instance of a tracing-aware RoundTripper.
func StartSpan ¶
StartSpan starts a trace span
Source Files ¶
- Version
- v0.1.0
- Published
- Apr 19, 2019
- Platform
- js/wasm
- Imports
- 9 packages
- Last checked
- 6 hours ago –
Tools for package owners.