Documentation
¶
Overview ¶
Package authotel provides the legacy authorization OpenTelemetry adapter.
Deprecated: use github.com/faustbrian/go-authorization/adapters/otel. This package remains supported for the longer of 180 days after successor public availability and two subsequently published stable root-module minor releases.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNilTracerProvider = adapter.ErrNilTracerProvider ErrNilMeterProvider = adapter.ErrNilMeterProvider )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
TracerProvider trace.TracerProvider
MeterProvider metric.MeterProvider
}
type Instrumenter ¶
type Instrumenter struct {
// contains filtered or unexported fields
}
func New ¶
func New(config Config) (*Instrumenter, error)
func (*Instrumenter) Begin ¶ added in v1.1.0
func (instrumenter *Instrumenter) Begin(ctx context.Context) (context.Context, func(authorization.Event))
func (*Instrumenter) Start ¶
func (instrumenter *Instrumenter) Start(ctx context.Context) (context.Context, func(authorization.Event))
Click to show internal directories.
Click to hide internal directories.