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
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 ¶
func (r RequestTracePropagator) Get(key string) string
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
Click to show internal directories.
Click to hide internal directories.