This package is primarily used in Azure client libraries and not meant to be used directly by consumers of Azure SDKs.
TracingClientis the primary interface providing tracing functionality to client libraries. Client libraries should only be aware of and interact with a
TracingClientimplementation can be created using the
Instrumenterprovides an abstraction over an instrumentation and acts as the interop point for using third party libraries like OpenTelemetry. By default, a no-op
Instrumenteris used. Customers who wish to enable
OpenTelemetrybased tracing will do so by installing and registering the @azure/opentelemetry-instrumentation-azure-sdk package.
TracingContextis an immutable data container, used to pass operation-specific information around (such as span parenting information).
TracingSpanis an abstraction of a
Spanwhich can be used to record events, attributes, and exceptions.
Examples can be found in the
You can build and run the tests locally by executing
rushx test. Explore the
test folder to see advanced usage and behavior of the public classes.
If you run into issues while using this library, please feel free to file an issue.
If you'd like to contribute to this library, please read the contributing guide to learn more about how to build and test the code.