Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@azure/core-tracing

Package Overview
Dependencies
Maintainers
1
Versions
283
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

  • 1.0.0-preview.12
  • npm
  • Socket score

Version published
Weekly downloads
6.1M
decreased by-17.91%
Maintainers
1
Weekly downloads
 
Created

What is @azure/core-tracing?

The @azure/core-tracing package provides a common interface for adding tracing to Azure SDKs. It allows developers to collect detailed information about operations performed by Azure SDKs, making it easier to diagnose issues and optimize performance. The package is built on OpenTelemetry, a set of APIs, libraries, agents, and instrumentation that provide observability for applications.

What are @azure/core-tracing's main functionalities?

Creating and managing spans

This feature allows developers to create and manage spans, which represent individual operations. Spans can be nested to represent complex operations composed of multiple steps. The code sample demonstrates how to create a tracing client, start a new span, and then end the span.

const { createTracingClient } = require('@azure/core-tracing');
const tracingClient = createTracingClient({
  namespace: 'Microsoft.Azure',
  packageName: 'AzureExample',
  packageVersion: '1.0.0'
});

// Start a new span
cost span = tracingClient.startSpan('myOperation');

// End the span
span.end();

Integrating with Azure SDKs

This feature demonstrates how to integrate the @azure/core-tracing package with other Azure SDKs, such as Azure Storage Blobs. By passing a tracing client to the SDK's client constructor, developers can automatically collect tracing information for operations performed by the SDK.

const { DefaultAzureCredential } = require('@azure/identity');
const { BlobServiceClient } = require('@azure/storage-blob');
const { createTracingClient } = require('@azure/core-tracing');

const tracingClient = createTracingClient({
  namespace: 'Microsoft.Azure',
  packageName: 'Azure.Storage.Blobs',
  packageVersion: '12.0.0'
});

const blobServiceClient = new BlobServiceClient(
  'https://<my-storage-account>.blob.core.windows.net/',
  new DefaultAzureCredential(),
  {
    tracingOptions: { tracingClient }
  }
);

Other packages similar to @azure/core-tracing

Keywords

FAQs

Package last updated on 30 Jun 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc