package tracing
import "github.com/moby/buildkit/util/tracing"
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
Variables ¶
var DefaultTransport = NewTransport(http.DefaultTransport)
Functions ¶
func ClientStatsHandler ¶
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 ¶
func NewTransport(rt http.RoundTripper) http.RoundTripper
func ServerStatsHandler ¶
func StartSpan ¶
func StartSpan(ctx context.Context, operationName string, opts ...trace.SpanStartOption) (trace.Span, context.Context)
StartSpan starts a new span as a child of the span in context. If there is no span in context then this is a no-op.
Types ¶
type MultiSpan ¶
func NewMultiSpan ¶
func NewMultiSpan() *MultiSpan
func (*MultiSpan) Add ¶
type MultiSpanExporter ¶
type MultiSpanExporter []sdktrace.SpanExporter
func (MultiSpanExporter) ExportSpans ¶
func (m MultiSpanExporter) ExportSpans(ctx context.Context, spans []sdktrace.ReadOnlySpan) (err error)
func (MultiSpanExporter) Shutdown ¶
func (m MultiSpanExporter) Shutdown(ctx context.Context) (err error)
Source Files ¶
grpcstats.go multi_span_exporter.go multispan.go tracing.go
Directories ¶
Path | Synopsis |
---|---|
util/tracing/delegated | |
util/tracing/detect | |
util/tracing/detect/jaeger | |
util/tracing/env | |
util/tracing/exec | |
util/tracing/otlptracegrpc | |
util/tracing/transform |
- Version
- v0.21.1 (latest)
- Published
- Apr 29, 2025
- Platform
- js/wasm
- Imports
- 21 packages
- Last checked
- 12 minutes ago –
Tools for package owners.