Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
ServiceName string
ServiceVersion string
Environment string
OTLPEndpoint string
OTLPHeaders map[string]string
EnableTracing bool
EnableMetrics bool
SampleRate float64 // 0.0 to 1.0
MetricInterval time.Duration
}
Config holds OpenTelemetry configuration
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns a default OpenTelemetry configuration. OTLPEndpoint is empty by default -- set it to enable export. When OTLPEndpoint is empty, Setup() is a no-op (no exporters created).
type SparrowMetrics ¶
type SparrowMetrics struct {
WebhookRegistrations metric.Int64Counter
EventsPushed metric.Int64Counter
WebhookDeliveries metric.Int64Counter
DeliveryDuration metric.Float64Histogram
QueueDepth metric.Int64UpDownCounter
ActiveWebhooks metric.Int64UpDownCounter
}
SparrowMetrics holds application-specific metrics
func NewSparrowMetrics ¶
func NewSparrowMetrics() (*SparrowMetrics, error)
NewSparrowMetrics creates application-specific metrics
Click to show internal directories.
Click to hide internal directories.