trace

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 8 Imported by: 0

README

opentelemetry traceing middleware

Use


type Trace gee.Hanler

func NewTrace(conf *config.Config) Trace {
	tr := trace.New(trace.WithAppName(conf.App.AppName))
	return tr
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Option) gee.Handler

Types

type Option

type Option func(c *tracing)

func WithAppName

func WithAppName(name string) Option

func WithPropagator

func WithPropagator(propagator propagation.TextMapPropagator) Option

func WithTracer

func WithTracer(tracer trace.Tracer) Option

Jump to

Keyboard shortcuts

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