Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@azure/core-tracing

Package Overview
Dependencies
Maintainers
2
Versions
447
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azure/core-tracing

Provides low-level interfaces and helper methods for tracing in Azure SDK

Source
npmnpm
Version
1.3.1-alpha.20251007.1
Version published
Weekly downloads
10M
2.42%
Maintainers
2
Weekly downloads
 
Created
Source

Azure Core tracing library for JavaScript

This is the core tracing library that provides low-level interfaces and helper methods for tracing in Azure SDK JavaScript libraries which work in the browser and Node.js.

Getting started

Installation

This package is primarily used in Azure client libraries and not meant to be used directly by consumers of Azure SDKs.

Key Concepts

  • TracingClient is the primary interface providing tracing functionality to client libraries. Client libraries should only be aware of and interact with a TracingClient instance.
    • A TracingClient implementation can be created using the createTracingClient factory function.
  • Instrumenter provides an abstraction over an instrumentation and acts as the interop point for using third party libraries like OpenTelemetry. By default, a no-op Instrumenter is used. Customers who wish to enable OpenTelemetry based tracing will do so by installing and registering the @azure/opentelemetry-instrumentation-azure-sdk package.
  • TracingContext is an immutable data container, used to pass operation-specific information around (such as span parenting information).
  • TracingSpan is an abstraction of a Span which can be used to record events, attributes, and exceptions.

Examples

Examples can be found in the samples folder.

Next steps

You can build and run the tests locally by executing npm run test. Explore the test folder to see advanced usage and behavior of the public classes.

Troubleshooting

If you run into issues while using this library, please feel free to file an issue.

Contributing

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.

Keywords

azure

FAQs

Package last updated on 07 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts