opentelemetry

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

func Middleware() func(next http.Handler) http.Handler

Middleware attaches logging context to the request.

Types

type LoggingSpanProcessor

type LoggingSpanProcessor struct{}

LoggingSpanProcessor is a OpenTelemetry span processor that logs to standard out in whatever format is defined by the logger.

func (*LoggingSpanProcessor) ForceFlush

func (*LoggingSpanProcessor) ForceFlush(ctx context.Context) error

func (*LoggingSpanProcessor) OnEnd

func (*LoggingSpanProcessor) OnStart

func (*LoggingSpanProcessor) Shutdown

func (*LoggingSpanProcessor) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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