Documentation
¶
Overview ¶
Package xtracer manages the OpenTelemetry tracer used across xhttp.
Spans are emitted under this module's import path as the instrumentation scope, so a trace shows the work as coming from the xhttp library rather than from whichever package inside the consuming service happens to call it.
Index ¶
Constants ¶
View Source
const (
// PkgName is the instrumentation scope reported to OpenTelemetry.
PkgName = "github.com/ruko1202/xhttp"
)
Variables ¶
This section is empty.
Functions ¶
func GetTracer ¶
GetTracer returns the tracer built from the current provider. It is safe for concurrent use.
func GetVersion ¶
func GetVersion() string
GetVersion returns the module version recorded in the binary's build info, falling back to defaultVersion when it cannot be determined.
func SetTracerProvider ¶
func SetTracerProvider(tp trace.TracerProvider)
SetTracerProvider sets the tracer provider used by xhttp. It is safe for concurrent use.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.