Versions in this module Expand all Collapse all v0 v0.4.1 Apr 24, 2024 Changes in this version + const Namespace + var ErrNoConfig = errors.New("no config found for opentelemetry") + var SizeBucketsOpt = metric.WithExplicitBucketBoundaries(128, 256, 512, 1024, 4 * 1024, 8 * 1024, 16 * 1024, 32 * 1024, 64 * 1024, ...) + var TimeBucketsOpt = metric.WithExplicitBucketBoundaries(0.010, 0.020, 0.050, 0.075, 0.100, 0.125, 0.150, 0.175, 0.200, 0.250, 0.300, ...) + func NormalizeURLPattern(u string) string + type Attributes []KeyValue + func (a Attributes) ToMap() (map[string]string, error) + type BackendMetricOpts struct + DetailedConnection bool + DisableStage bool + ReadPayload bool + RoundTrip bool + StaticAttributes Attributes + func (o *BackendMetricOpts) Enabled() bool + type BackendOpts struct + Metrics *BackendMetricOpts + Traces *BackendTraceOpts + func (o *BackendOpts) Enabled() bool + type BackendTraceOpts struct + DetailedConnection bool + DisableStage bool + ReadPayload bool + ReportHeaders bool + RoundTrip bool + StaticAttributes Attributes + func (o *BackendTraceOpts) Enabled() bool + type ConfigData struct + Exporters Exporters + Layers *LayersOpts + MetricReportingPeriod *int + ServiceName string + ServiceVersion string + SkipPaths []string + TraceSampleRate *float64 + func FromLura(srvCfg luraconfig.ServiceConfig) (*ConfigData, error) + func (c *ConfigData) UnsetFieldsToDefaults() + func (c *ConfigData) Validate() error + type Exporters struct + OTLP []OTLPExporter + Prometheus []PrometheusExporter + func (e *Exporters) Validate() error + type GlobalOpts struct + DisableMetrics bool + DisablePropagation bool + DisableTraces bool + ReportHeaders bool + type KeyValue struct + Key string + Value string + type LayersOpts struct + Backend *BackendOpts + Global *GlobalOpts + Pipe *PipeOpts + type OTLPExporter struct + DisableMetrics bool + DisableTraces bool + Host string + Name string + Port int + UseHTTP bool + type PipeOpts struct + DisableMetrics bool + DisableTraces bool + ReportHeaders bool + func (o *PipeOpts) Enabled() bool + type PrometheusExporter struct + DisableMetrics bool + GoMetrics bool + Host string + Name string + NameSpace string + Port int + ProcessMetrics bool