Documentation ¶
Overview ¶
Package otel contains an o11y.Provider that emits open telemetry gRPC. N.B. This has not been tried against a production collector, so we need to try it out on a safe / non production traffic service.
Index ¶
- func New(conf Config) (o11y.Provider, error)
- type Annotator
- type Config
- type OTel
- func (o OTel) AddField(ctx context.Context, key string, val interface{})
- func (o OTel) AddFieldToTrace(ctx context.Context, key string, val interface{})
- func (o OTel) AddGlobalField(key string, val interface{})
- func (o OTel) Close(ctx context.Context)
- func (o OTel) GetSpan(ctx context.Context) o11y.Span
- func (o OTel) Helpers() o11y.Helpers
- func (o OTel) Log(ctx context.Context, name string, fields ...o11y.Pair)
- func (o OTel) MetricsProvider() o11y.MetricsProvider
- func (o *OTel) RawProvider() *OTel
- func (o OTel) StartSpan(ctx context.Context, name string) (context.Context, o11y.Span)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Annotator ¶
type Annotator struct {
// contains filtered or unexported fields
}
Annotator is a SpanProcessor that adds attributes to all started spans.
func (Annotator) OnEnd ¶
func (a Annotator) OnEnd(s sdktrace.ReadOnlySpan)
type OTel ¶
type OTel struct {
// contains filtered or unexported fields
}
func (OTel) AddFieldToTrace ¶
func (OTel) AddGlobalField ¶
func (OTel) MetricsProvider ¶
func (o OTel) MetricsProvider() o11y.MetricsProvider
func (*OTel) RawProvider ¶
RawProvider satisfies an interface the helpers need
Source Files ¶
Click to show internal directories.
Click to hide internal directories.