otel

package
v0.0.0-...-f192d55 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddErrorEvent

func AddErrorEvent(span trace.Span, eventName, errType string, err error)

func Middleware

func Middleware(next http.Handler) http.Handler

func Setup

func Setup(ctx context.Context, cfg *config.Config) (func(context.Context), error)

func StartSpan

func StartSpan(ctx context.Context, spanName string) (context.Context, trace.Span)

func StartSpanFromRequest

func StartSpanFromRequest(r *http.Request, spanName string) (*http.Request, trace.Span)

StartSpanFromRequest starts a span from an incoming HTTP request and returns th request with the updated context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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