Documentation
¶
Overview ¶
Package xtracer provides OpenTelemetry tracing utilities for Goque. It manages the global tracer provider and tracer instances used throughout the library.
Index ¶
Constants ¶
View Source
const (
// PkgName is the package identifier used for OpenTelemetry instrumentation.
PkgName = "github.com/ruko1202/goque"
)
Variables ¶
This section is empty.
Functions ¶
func GetTracer ¶
GetTracer returns the global tracer instance configured with the current tracer provider. This function is thread-safe and can be called concurrently.
func GetVersion ¶
func GetVersion() string
GetVersion returns the version of the Goque package. It reads the version from build info or returns the default version if not available.
func SetTracerProvider ¶
func SetTracerProvider(tp trace.TracerProvider)
SetTracerProvider sets the global OpenTelemetry tracer provider. This function is thread-safe and updates the global tracer instance.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.