Documentation ¶
Index ¶
- Constants
- func CreateTraceProvider(config Config) (*trace.TracerProvider, error)
- func NewAuthorizationRequestSpan(parentContext context.Context, ...) (context.Context, otel_trace.Span)
- func NewSpan(parentContext context.Context, tracerName, spanName string, ...) (context.Context, otel_trace.Span)
- type Config
- type ErrorHandler
Constants ¶
View Source
const ( AuthorinoRequestIdAttr = "authorino.request_id" PropagationRequestIdAttr = "guid:x-request-id" )
Variables ¶
This section is empty.
Functions ¶
func CreateTraceProvider ¶
func CreateTraceProvider(config Config) (*trace.TracerProvider, error)
func NewAuthorizationRequestSpan ¶ added in v0.13.0
func NewAuthorizationRequestSpan(parentContext context.Context, tracerName, spanName, requestId, propagationRequestId string, options ...otel_trace.SpanStartOption) (context.Context, otel_trace.Span)
func NewSpan ¶ added in v0.13.0
func NewSpan(parentContext context.Context, tracerName, spanName string, options ...otel_trace.SpanStartOption) (context.Context, otel_trace.Span)
Types ¶
type ErrorHandler ¶ added in v0.13.0
func (*ErrorHandler) Handle ¶ added in v0.13.0
func (h *ErrorHandler) Handle(err error)
Click to show internal directories.
Click to hide internal directories.