Documentation ¶
Index ¶
- Variables
- func GaugeMillisecond(ctx context.Context, si64 *stats.Int64Measure, value int64, ...)
- func IncrementInt64Counter(ctx context.Context, si64 *stats.Int64Measure, tagMutator ...tag.Mutator)
- func Init(ctx context.Context, cfg Config, lg log.Logger)
- type Config
- type MessagingTracer
- type PostgresTracer
- type Transport
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TagReceiverType = tag.MustNewKey("receiver_type") TagRoutingMethod = tag.MustNewKey("routing_method") TagMessageStatus = tag.MustNewKey("status") MetricNotificationMessageQueueTime = stats.Int64("notification.message.queue.time", "time of message from enqueued to be picked up", stats.UnitMilliseconds) MetricNotificationMessageEnqueue = stats.Int64("notification.message.enqueue", "enqueued notification messages", stats.UnitDimensionless) MetricNotificationMessagePending = stats.Int64("notification.message.pending", "processed notification messages", stats.UnitDimensionless) MetricNotificationMessageFailed = stats.Int64("notification.message.failed", "failed to publish notification messages", stats.UnitDimensionless) MetricNotificationMessagePublished = stats.Int64("notification.message.published", "published notification messages", stats.UnitDimensionless) MetricNotificationSubscriberNotFound = stats.Int64("notification.subscriber.notfound", "notification does not match any subscription", stats.UnitDimensionless) MetricReceiverPreHookDBFailed = stats.Int64("receiver.prehookdb.failed", "failed prehook db receiver", stats.UnitDimensionless) MetricReceiverPostHookDBFailed = stats.Int64("receiver.posthookdb.failed", "failed posthook db receiver", stats.UnitDimensionless) MetricReceiverPreHookQueueFailed = stats.Int64("receiver.prehookqueue.failed", "failed prehook queue receiver", stats.UnitDimensionless) MetricReceiverPostHookQueueFailed = stats.Int64("receiver.posthookqueue.failed", "failed posthook queue receiver", stats.UnitDimensionless) )
View Source
var Meter = global.MeterProvider().Meter("siren")
Functions ¶
func GaugeMillisecond ¶ added in v0.5.4
func IncrementInt64Counter ¶ added in v0.5.2
Types ¶
type Config ¶ added in v0.5.2
type Config struct { // Debug sets the bind address for pprof & zpages server. Debug string `mapstructure:"debug_addr" yaml:"debug_addr" default:"localhost:8081"` // OpenCensus trace & metrics configurations. EnableCPU bool `mapstructure:"enable_cpu" yaml:"enable_cpu" default:"true"` EnableMemory bool `mapstructure:"enable_memory" yaml:"enable_memory" default:"true"` SamplingFraction float64 `mapstructure:"sampling_fraction" yaml:"sampling_fraction" default:"1"` // OpenCensus exporter configurations. ServiceName string `mapstructure:"service_name" yaml:"service_name" default:"siren"` // NewRelic exporter. EnableNewrelic bool `mapstructure:"enable_newrelic" yaml:"enable_newrelic" default:"false"` NewRelicAppName string `mapstructure:"newrelic_app_name" yaml:"newrelic_app_name"` NewRelicAPIKey string `mapstructure:"newrelic_api_key" yaml:"newrelic_api_key" default:"____LICENSE_STRING_OF_40_CHARACTERS_____"` // OpenTelemetry Agent exporter. EnableOtelAgent bool `mapstructure:"enable_otel_agent" yaml:"enable_otel_agent" default:"false"` OpenTelAgentAddr string `mapstructure:"otel_agent_addr" yaml:"otel_agent_addr" default:"localhost:55678"` }
type MessagingTracer ¶ added in v0.5.2
type MessagingTracer struct {
// contains filtered or unexported fields
}
func NewMessagingTracer ¶ added in v0.5.2
func NewMessagingTracer(queueSystem string) *MessagingTracer
type PostgresTracer ¶ added in v0.5.2
type PostgresTracer struct {
// contains filtered or unexported fields
}
func NewPostgresTracer ¶ added in v0.5.2
func NewPostgresTracer(url string) (*PostgresTracer, error)
Click to show internal directories.
Click to hide internal directories.