Documentation
¶
Index ¶
- type BunQueryHook
- type Config
- type RedisHook
- type Registry
- type Runtime
- func (r *Runtime) Propagator() propagation.TextMapPropagator
- func (r *Runtime) Shutdown(ctx context.Context) error
- func (r *Runtime) Start(ctx context.Context, name string, attrs ...attribute.KeyValue) (context.Context, trace.Span)
- func (r *Runtime) Tracer(name string) trace.Tracer
- func (r *Runtime) TracerProvider() trace.TracerProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BunQueryHook ¶
type BunQueryHook struct {
// contains filtered or unexported fields
}
func NewBunQueryHook ¶
func NewBunQueryHook(runtime *Runtime, metrics *Registry) *BunQueryHook
func (*BunQueryHook) AfterQuery ¶
func (h *BunQueryHook) AfterQuery(ctx context.Context, event *bun.QueryEvent)
func (*BunQueryHook) BeforeQuery ¶
func (h *BunQueryHook) BeforeQuery(ctx context.Context, event *bun.QueryEvent) context.Context
type Config ¶
type Config struct {
Enabled bool
ServiceName string
OTLPEndpoint string
Insecure bool
TraceSampleRatio float64
}
Config controls optional OpenTelemetry tracing. Metrics remain available through Registry even when tracing is disabled.
type RedisHook ¶
type RedisHook struct {
// contains filtered or unexported fields
}
func NewRedisHook ¶
func (*RedisHook) ProcessHook ¶
func (h *RedisHook) ProcessHook(next redis.ProcessHook) redis.ProcessHook
func (*RedisHook) ProcessPipelineHook ¶
func (h *RedisHook) ProcessPipelineHook(next redis.ProcessPipelineHook) redis.ProcessPipelineHook
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry is a small Prometheus text-format registry. It deliberately keeps labels bounded to prevent request data from becoming metric cardinality.
func NewRegistry ¶
func NewRegistry() *Registry
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
Runtime owns the provider created for one Mesa instance. It does not change global OpenTelemetry providers, which keeps multiple Mesa instances safe in tests and in embedding applications.
func (*Runtime) Propagator ¶
func (r *Runtime) Propagator() propagation.TextMapPropagator
func (*Runtime) TracerProvider ¶
func (r *Runtime) TracerProvider() trace.TracerProvider
Click to show internal directories.
Click to hide internal directories.