Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitTracer ¶
InitTracer initializes the opentelemetry tracer to be used by grpc and http clients and servers.
func NewHttpClient ¶
Types ¶
type Config ¶
type Config struct { Enabled bool `mapstructure:"enabled" default:"false"` ServiceName string `mapstructure:"service_name" default:"guardian"` Labels map[string]string `mapstructure:"labels"` Exporter string `mapstructure:"exporter" default:"stdout"` OTLP struct { Headers map[string]string `mapstructure:"headers"` Endpoint string `mapstructure:"endpoint" default:"otlp.nr-data.net:443"` } `mapstructure:"otlp"` }
Click to show internal directories.
Click to hide internal directories.