observability

package
v0.0.0-...-8d99f06 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ObserveWithTrace

func ObserveWithTrace(ctx context.Context, o prometheus.Observer, v float64)

ObserveWithTrace observes the value, providing the traceID as an exemplar if exemplars are supported and a traceID is present

func StartSpan

func StartSpan(
	ctx context.Context,
	name string,
	opts ...trace.SpanStartOption,
) (context.Context, trace.Span)

StartSpan starts a trace with the given context

Types

type RequestTracePropagator

type RequestTracePropagator struct {
	RequestHeader *pb.RequestHeader
}

RequestTracePropagator is used to propagate tracing information into the RPCTInfo field of the RequestHeader

func (RequestTracePropagator) Get

Get implements the go.opentelemetry.io/otel/propagation.TextMapCarrier interface

func (RequestTracePropagator) Keys

func (r RequestTracePropagator) Keys() []string

Keys implements the go.opentelemetry.io/otel/propagation.TextMapCarrier interface

func (RequestTracePropagator) Set

func (r RequestTracePropagator) Set(key string, value string)

Set implements the go.opentelemetry.io/otel/propagation.TextMapCarrier interface

Jump to

Keyboard shortcuts

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