Documentation ¶
Overview ¶
Package trace provides tracing functionality.
Index ¶
Constants ¶
View Source
const ( // EnvDevelopment is set to development. EnvDevelopment = "development" // EnvProduction is set to production. EnvProduction = "production" )
Variables ¶
This section is empty.
Functions ¶
func GetTraceIDFromContext ¶
GetTraceIDFromContext gets trace id from context.
Types ¶
type Config ¶
type Config struct { OtelCollectorAddress string `env:"OPENTELEMETRY_COLLECTOR_ADDRESS,default=localhost:4317"` AppEnv string `env:"APP_ENV,default=development"` ServiceName string `env:"SERVICE_NAME,required"` }
Config holds configuration for tracing.
type Provider ¶
type Provider struct {
otrace.TracerProvider
}
Provider provides tracing functionality.
Click to show internal directories.
Click to hide internal directories.