trace

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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 Config added in v0.13.0

type Config struct {
	Endpoint string
	Insecure bool
	Tags     []string
	Version  string
}

type ErrorHandler added in v0.13.0

type ErrorHandler struct {
	logr.Logger
}

func (*ErrorHandler) Handle added in v0.13.0

func (h *ErrorHandler) Handle(err error)

Jump to

Keyboard shortcuts

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