Documentation ¶ Overview ¶ Package otlphttp provides gtrace.Tracer implementation using OpenTelemetry protocol. Index ¶ func Init(serviceName, endpoint, path string) (func(ctx context.Context), error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Init ¶ func Init(serviceName, endpoint, path string) (func(ctx context.Context), error) Init initializes and registers `otlphttp` to global TracerProvider. The output parameter `Shutdown` is used for waiting exported trace spans to be uploaded, which is useful if your program is ending, and you do not want to lose recent spans. Types ¶ This section is empty. Source Files ¶ View all Source files otlphttp.go Click to show internal directories. Click to hide internal directories.