Socket
Socket
Sign inDemoInstall

@opentelemetry/instrumentation-dns

Package Overview
Dependencies
27
Maintainers
3
Versions
32
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @opentelemetry/instrumentation-dns

OpenTelemetry dns automatic instrumentation package.


Version published
Weekly downloads
566K
decreased by-2.73%
Maintainers
3
Install size
4.46 MB
Created
Weekly downloads
 

Readme

Source

OpenTelemetry DNS Instrumentation for Node.js

NPM Published Version Apache License

This module provides automatic instrumentation for the dns module, which may be loaded using the @opentelemetry/sdk-trace-node package and is included in the @opentelemetry/auto-instrumentations-node bundle.

If total installation size is not constrained, it is recommended to use the @opentelemetry/auto-instrumentations-node bundle with @opentelemetry/sdk-node for the most seamless instrumentation experience.

Status

MaturityComponent OwnerCompatibility
UnmaintainedN/AAPI 1.0+
SDK 1.0+

Installation

npm install --save @opentelemetry/instrumentation-dns

Usage

const { NodeTracerProvider } = require('@opentelemetry/sdk-trace-node');
const { DnsInstrumentation } = require('@opentelemetry/instrumentation-dns');
const { registerInstrumentations } = require('@opentelemetry/instrumentation');

const provider = new NodeTracerProvider();
provider.register();

registerInstrumentations({
  instrumentations: [
    new DnsInstrumentation({
      // see under for available configuration
    }),
  ],
});

DNS Instrumentation Options

DNS instrumentation has currently one option. You can set the following:

OptionsTypeDescription
ignoreHostnames`IgnoreMatcherIgnoreMatcher[]`

License

Apache 2.0 - See LICENSE for more information.

Keywords

FAQs

Last updated on 03 Apr 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc