Documentation
¶
Index ¶
- func InitOtel(ctx context.Context, opts ...Option) (context.Context, func(context.Context) error, error)
- type Option
- func WithInitialLogFields(ilf map[string]interface{}) Option
- func WithInsecureOtelEndpoint(endpoint string) Option
- func WithLoggingDisabled() Option
- func WithOtelEndpoint(endpoint string, tlsCertPath string, tlsCert string) Option
- func WithServiceName(serviceName string) Option
- func WithTracingDisabled() Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶ added in v0.2.90
type Option func(*otelConfig)
Option is a function that configures an otelConfig.
func WithInitialLogFields ¶ added in v0.2.90
WithInitialLogFields sets the log fields that will be added to all log messages.
func WithInsecureOtelEndpoint ¶ added in v0.2.90
WithInsecureOtelEndpoint sets the endpoint for both tracing and logging with insecure connection.
func WithLoggingDisabled ¶ added in v0.2.90
func WithLoggingDisabled() Option
WithLoggingDisabled disables logging.
func WithOtelEndpoint ¶ added in v0.2.90
WithOtelEndpoint sets the endpoint and TLS certificate for both tracing and logging.
func WithServiceName ¶ added in v0.2.90
WithServiceName sets the service name for the OpenTelemetry configuration.
func WithTracingDisabled ¶ added in v0.2.90
func WithTracingDisabled() Option
WithTracingDisabled disables tracing.
Click to show internal directories.
Click to hide internal directories.