tracingtree

package
v1.0.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

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

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.

Jump to

Keyboard shortcuts

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