tracing

package
v0.0.0-...-1be4747 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package tracing (tracing)

Index

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

func InitTracer(ctx context.Context, serviceName string) (shutdown func(ctx context.Context))

InitTracer initializes and registers jaeger to global TracerProvider.

func SetAttributes

func SetAttributes(r *ghttp.Request, span *gtrace.Span)

SetAttributes set tracing attributes

Types

This section is empty.

Jump to

Keyboard shortcuts

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