Repository navigation
v1.1.0-beta.5
Pre-release
Pre-release
·
107 commits
to main
since this release
Added
package:dartastic_opentelemetry/testing.dart— opt-in library with the in-memory test harness used by the dart-otel-reference-demo and every OTel-Dart wrapper. ExportsInMemorySpanExporter(withfindSpanByName/findSpansByName/findSpansStartingWith/clear),InMemoryLogExporter,InMemoryMetricExporter,OnDemandMetricReader(timer-free; tests callcollect()explicitly viaTestHarness.collectMetrics),TestHarnessaggregator, andmaybeInitializeOtelForTest()(singleton initializer forsetUpAll). Deliberately not re-exported from the main barrel so production bundles don't carry the test classes — import the/testing.dartpath explicitly. Unifies the test scaffolding across the SDK, the reference demo, and theotel_*wrapper packages; previously each wrapper had its own near-identical copy.
Removed
- Breaking:
Tracer.startSpanWithContextis removed. Deprecated since 1.1.0-beta (released 2026-05-07), four betas ago. Migration is a 1:1 rename —tracer.startSpanWithContext(name: x, context: ctx, kind: k, attributes: a)→tracer.startSpan(x, context: ctx, kind: k, attributes: a). To make the returned span active for a scope, wrap the work withtracer.withSpan(sync) ortracer.withSpanAsync(async); the deprecated method had stopped activating the span as of 1.1.0-beta anyway, so call sites that relied on activation already needed updating. Test suites that exercisedstartSpanWithContextwere migrated in this release.