Documentation ¶
Overview ¶
Package tracing (tracing)
Index ¶
- func CommonEventOption(_ context.Context, namespace string) trace.SpanStartEventOption
- func InitOtlpGrpc(serviceName, endpoint, traceToken, version, environment string) (func(ctx context.Context), error)
- func InitTracer(ctx context.Context, serviceName string) (shutdown func(ctx context.Context))
- func SetAttributes(r *ghttp.Request, span *gtrace.Span)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommonEventOption ¶
func CommonEventOption(_ context.Context, namespace string) trace.SpanStartEventOption
CommonEventOption common event option
func InitOtlpGrpc ¶
func InitOtlpGrpc(serviceName, endpoint, traceToken, version, environment string) (func(ctx context.Context), error)
InitOtlpGrpc initializes and registers `otlpgrpc` to global TracerProvider.
The output parameter `Shutdown` is used for waiting exported tracing spans to be uploaded, which is useful if your program is ending, and you do not want to lose recent spans.
func InitTracer ¶
InitTracer initializes and registers jaeger to global TracerProvider.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.