otel

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCounter

func AddCounter(_ context.Context, counterName string, unit string) error

func Count

func Count(ctx context.Context, counterName string, incr int64, opts ...metric.AddOption)

func Init

func Init(ctx context.Context)

Types

type SpanWrapper

type SpanWrapper struct {
	// contains filtered or unexported fields
}

func Trace

func Trace(ctx context.Context, spanName string, opts ...trace.SpanStartOption) (context.Context, *SpanWrapper)

Jump to

Keyboard shortcuts

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