Documentation ¶
Index ¶
- Constants
- func AddFloat64Counter(ctx context.Context, meter metric.Meter, name, desc string, cv float64, ...)
- func Configure(wg *sync.WaitGroup, done <-chan bool, cfg Config) error
- func EchoRequestLoggerLogValuesFunc(packageName, functionName string) func(c echo.Context, v middleware.RequestLoggerValues) error
- func GetCarrierFromContext(ctx context.Context) map[string]string
- func GetContextFromCarrier(carrier map[string]string) context.Context
- func IncrementFloat64Counter(ctx context.Context, meter metric.Meter, name, desc string, ...)
- func NewTracer(name string, options ...trace.TracerOption) trace.Tracer
- func TraceBuilder(packageName, functionName string, options ...TracerOptions) (context.Context, trace.Span)
- type Config
- type Exporter
- type Otel
- type TracerOptions
- func WithCarrier(carrier map[string]string) TracerOptions
- func WithContext(ctx context.Context) TracerOptions
- func WithSpanOptionAttributes(attributes ...attribute.KeyValue) TracerOptions
- func WithSpanOptions(options ...trace.SpanStartOption) TracerOptions
- func WithTracerOptions(options ...trace.TracerOption) TracerOptions
Constants ¶
View Source
const ( ExporterGrpc = Exporter("grpc") ExporterConsole = Exporter("console") )
Variables ¶
This section is empty.
Functions ¶
func AddFloat64Counter ¶
func EchoRequestLoggerLogValuesFunc ¶
func EchoRequestLoggerLogValuesFunc(packageName, functionName string) func(c echo.Context, v middleware.RequestLoggerValues) error
func IncrementFloat64Counter ¶
func TraceBuilder ¶
Types ¶
type TracerOptions ¶
type TracerOptions struct {
// contains filtered or unexported fields
}
func WithCarrier ¶
func WithCarrier(carrier map[string]string) TracerOptions
func WithContext ¶
func WithContext(ctx context.Context) TracerOptions
func WithSpanOptionAttributes ¶
func WithSpanOptionAttributes(attributes ...attribute.KeyValue) TracerOptions
func WithSpanOptions ¶
func WithSpanOptions(options ...trace.SpanStartOption) TracerOptions
func WithTracerOptions ¶
func WithTracerOptions(options ...trace.TracerOption) TracerOptions
Click to show internal directories.
Click to hide internal directories.