xtracer

package
v0.8.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 4 Imported by: 0

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

func GetTracer() trace.Tracer

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL