otel

package
v0.0.0-...-c660d8e Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ToolsCtxKey = ContextKey("otel-tools")
)

Variables

This section is empty.

Functions

func InstallExportPipeline

func InstallExportPipeline(ctx context.Context, resource *resource.Resource) func()

func Resource

func Resource() *resource.Resource

Types

type ContextKey

type ContextKey string

func (ContextKey) String

func (c ContextKey) String() string

type Tools

type Tools struct {
	Tracer  trace.Tracer
	Meter   metric.Meter
	Cleanup func()
}

func GetToolsFromContext

func GetToolsFromContext(ctx context.Context) *Tools

func NewTools

func NewTools(ctx context.Context, meterName string) (context.Context, *Tools)

Jump to

Keyboard shortcuts

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