Documentation
¶
Overview ¶
Package tracingtree provides the application-process OpenTelemetry plumbing used by the Durable Task Scheduler tracing tests: a process-wide in-memory exporter and the caller span whose W3C context the SDK propagates to DTS. Durable operation spans are emitted by DTS service-side, not by the Go worker.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Describe ¶
func Describe(spans []sdktrace.ReadOnlySpan) string
Describe renders exported spans for assertion failure messages.
func Init ¶
func Init() *tracetest.InMemoryExporter
Init installs an in-memory tracer provider as the global OTel provider and resets the previously collected spans. The global provider can only be installed once per process, so the exporter is shared and reset per test.
func StartCallerSpan ¶
func StartCallerSpan( t require.TestingT, tracerName string, parent context.Context, name string, ) (context.Context, trace.Span)
StartCallerSpan starts the client span that stands in for the application code scheduling an orchestration. The orchestration's whole span tree must hang off it, so the span is asserted to be sampled: an unsampled caller span would silently stop propagating trace context.
Types ¶
This section is empty.