authotel

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2026 License: MIT Imports: 12 Imported by: 0

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))

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL