
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@opentelemetry/plugin-dns
Advanced tools
This module provides automatic instrumentation for dns
.
For automatic instrumentation see the @opentelemetry/node package.
npm install --save @opentelemetry/plugin-dns
const { NodeTracerProvider } = require('@opentelemetry/node');
const { registerInstrumentations } = require('@opentelemetry/instrumentation');
const provider = new NodeTracerProvider();
provider.register();
registerInstrumentations({
instrumentations: [
{
plugins: {
dns: {
enabled: true,
// You may use a package name or absolute path to the file.
path: '@opentelemetry/plugin-dns',
// dns plugin options
}
}
},
],
tracerProvider: provider,
});
If you use Zipkin, you must use ignoreHostnames
in order to not trace those calls. If the server is local. You can set :
const provider = new NodeTracerProvider();
provider.register();
registerInstrumentations({
instrumentations: [
{
plugins: {
dns: {
enabled: true,
// You may use a package name or absolute path to the file.
path: '@opentelemetry/plugin-dns',
ignoreHostnames: ['localhost']
}
}
},
],
tracerProvider: provider,
});
Dns plugin has currently one option. You can set the following:
Options | Type | Description |
---|---|---|
ignoreHostnames | IgnoreMatcher[] | Dns plugin will not trace all requests that match hostnames |
Apache 2.0 - See LICENSE for more information.
0.15.0
auto-instrumentation-web
auto-instrumentation-node
opentelemetry-instrumentation-hapi
opentelemetry-instrumentation-koa
opentelemetry-instrumentation-mysql
opentelemetry-instrumentation-net
opentelemetry-host-metrics
opentelemetry-host-metrics
, opentelemetry-test-utils
FAQs
OpenTelemetry dns automatic instrumentation package.
The npm package @opentelemetry/plugin-dns receives a total of 2,054 weekly downloads. As such, @opentelemetry/plugin-dns popularity was classified as popular.
We found that @opentelemetry/plugin-dns demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
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.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.