Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnduserUsernameKey = attribute.Key("enduser.username") CorrelationIDKey = attribute.Key("ctx.correlation_id") )
Variables ¶
This section is empty.
Functions ¶
func NewHexaPropagator ¶
func NewHexaPropagator(p propagation.TextMapPropagator) hexa.ContextPropagator
func NewTracerProvider ¶
func NewTracerProvider(tp *tracesdk.TracerProvider) *tracerProvider
Types ¶
type HexaCarrier ¶
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).
func NewOpenTelemetry ¶
func NewOpenTelemetry(tp trace.TracerProvider, mp metric.MeterProvider) OpenTelemetry
Click to show internal directories.
Click to hide internal directories.