tracing

package module
v0.0.0-...-8781f75 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractSpanAndTraceID

func ExtractSpanAndTraceID(r *http.Request) (traceID, spanID string)

ExtractSpanAndTraceID extracts span and trace IDs from an http request header.

func InstrumentedTransport

func InstrumentedTransport(baseTransport http.RoundTripper, spanNameCtxValue interface{}, tp sdktrace.TracerProvider) http.RoundTripper

InstrumentedTransport returns the transport to use in client requests. It takes in a transport to wrap, e.g. http.DefaultTransport, and the request context value to pull the span name out from. 99% sure this is wrapping a wrapped thing and totally redundant. Fix later.

func OtlpGrpcExporter

func OtlpGrpcExporter(ctx context.Context, opts ...Option) (sdktrace.SpanExporter, error)

OtlpGrpcExporter uses the otlptracegrpc modules and the otlptrace module to produce a new exporter at our default addr

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithAddress

func WithAddress(addr string) Option

WithAddress takes an address in the form of Host:Port

Jump to

Keyboard shortcuts

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