Tracing: Unable to use multiple versions of core-tracing #29736
Labels
Client
This issue points to a problem in the data-plane of the library.
test-utils
Label for the issues related to the @azure/test-utils package
Milestone
Now that we have multiple versions of core-tracing being used side-by-side the supportsTracing helper has been failing - test-utils will set the tracer on version N, but the client package uses the tracer on version N+1
To resolve this, we want to:
tracingOptions
in core-tracingmockInstrumenter
instance from test-utils through the tracing clientThen, each client can instantiate its own tracingClient passing the instrumenter through and allowing us to ensure the same instance is shared across versions.
It would be nice if we can hook this into the recorder.configureClientOptions call to avoid having to patch the instrumenter in every test file
The text was updated successfully, but these errors were encountered: