htel

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2022 License: MIT Imports: 8 Imported by: 4

Documentation

Index

Constants

View Source
const (
	EnduserUsernameKey = attribute.Key("enduser.username")
	CorrelationIDKey   = attribute.Key("ctx.correlation_id")
)

Variables

This section is empty.

Functions

func NewTracerProvider

func NewTracerProvider(tp *tracesdk.TracerProvider) *tracerProvider

Types

type HexaCarrier

type HexaCarrier map[string][]byte

HexaCarrier is an open telemetry carrier to get & give exported open telemetry data.

func (HexaCarrier) Get

func (hc HexaCarrier) Get(key string) string

func (HexaCarrier) Keys

func (hc HexaCarrier) Keys() []string

func (HexaCarrier) Set

func (hc HexaCarrier) Set(key string, value string)

type OpenTelemetry

type OpenTelemetry interface {
	TracerProvider() trace.TracerProvider
	MeterProvider() metric.MeterProvider
}

OpenTelemetry is just a wrapper for openTelemetry services to implement hexa services(to shutdown... them).

Jump to

Keyboard shortcuts

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