Documentation ¶
Index ¶
- Variables
- func ClientStatsHandler(opts ...otelgrpc.Option) stats.Handler
- func ContextWithSpanFromContext(ctx, ctx2 context.Context) context.Context
- func FinishWithError(span trace.Span, err error)
- func NewTransport(rt http.RoundTripper) http.RoundTripper
- func ServerStatsHandler(opts ...otelgrpc.Option) stats.Handler
- func StartSpan(ctx context.Context, operationName string, opts ...trace.SpanStartOption) (trace.Span, context.Context)
- type MultiSpan
- type MultiSpanExporter
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultClient = &http.Client{ Transport: DefaultTransport, }
View Source
var DefaultTransport = NewTransport(http.DefaultTransport)
Functions ¶
func ClientStatsHandler ¶ added in v0.14.0
func ContextWithSpanFromContext ¶
ContextWithSpanFromContext sets the tracing span of a context from other context if one is not already set. Alternative would be context.WithoutCancel() that would copy the context but reset ctx.Done
func FinishWithError ¶
FinishWithError finalizes the span and sets the error if one is passed
func NewTransport ¶ added in v0.7.0
func NewTransport(rt http.RoundTripper) http.RoundTripper
func ServerStatsHandler ¶ added in v0.14.0
Types ¶
type MultiSpan ¶
func NewMultiSpan ¶
func NewMultiSpan() *MultiSpan
type MultiSpanExporter ¶ added in v0.14.0
type MultiSpanExporter []sdktrace.SpanExporter
func (MultiSpanExporter) ExportSpans ¶ added in v0.14.0
func (m MultiSpanExporter) ExportSpans(ctx context.Context, spans []sdktrace.ReadOnlySpan) (err error)
Click to show internal directories.
Click to hide internal directories.