1.0.0-preview.14 (2022-02-03)
Breaking Changes
- @azure/core-tracing has been rewritten in order to provide cleaner abstractions for client libraries as well as remove @opentelemetry/api as a direct dependency.
- @opentelemetry/api is no longer a direct dependency of @azure/core-tracing providing for smaller bundle sizes and lower incidence of version conflicts
createSpanFunction
has been removed and replaced with a statefulTracingClient
which can be created using thecreateTracingClient
function.TracingClient
introduces a new API for creating tracing spans. UseTracingClient#withSpan
to wrap an invocation in a span, ensuring the span is ended and exceptions are captured.TracingClient
also provides the lower-level APIs necessary to start a span without making it active, create request headers, serializetraceparent
header, and wrapping a callback with an active context.
Other Changes
- Updates package to work with the react native bundler. PR #17783