@opentelemetry/instrumentation-mongoose
OpenTelemetry automatic instrumentation package for mongoose
Last updated 4 years ago by dyladan .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @opentelemetry/instrumentation-mongoose 
SYNC missed versions from official npm registry.

OpenTelemetry mongoose Instrumentation for Node.js

NPM Published Version Apache License

This module provides automatic instrumentation for the mongoose 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.

Compatible with OpenTelemetry JS API and SDK 1.0+.

Installation

npm install --save @opentelemetry/instrumentation-mongoose

Supported Versions

Usage

To load a specific plugin, specify it in the registerInstrumentations's configuration:

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

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

registerInstrumentations({
  instrumentations: [
    new MongooseInstrumentation(),
  ],
})

Semantic Conventions

This package uses @opentelemetry/semantic-conventions version 1.22+, which implements Semantic Convention Version 1.7.0

Attributes collected:

Attribute Short Description
db.mongodb.collection The collection being accessed within the database stated in db.name.
db.name This attribute is used to report the name of the database being accessed.
db.operation The name of the operation being executed, or the SQL keyword.
db.statement The database statement being executed.
db.system An identifier for the database management system (DBMS) product being used.
db.user Username for accessing the database.
net.peer.name Remote hostname or similar.
net.peer.port Remote port number.

Useful links

License

Apache 2.0 - See LICENSE for more information.

Current Tags

  • 0.71.0                                ...           latest (23 days ago)

56 Versions

  • 0.71.0                                ...           23 days ago
  • 0.70.0                                ...           a month ago
  • 0.69.0                                ...           2 months ago
  • 0.68.0                                ...           3 months ago
  • 0.67.0                                ...           4 months ago
  • 0.66.0                                ...           5 months ago
  • 0.65.0                                ...           6 months ago
  • 0.64.0                                ...           7 months ago
  • 0.63.0                                ...           7 months ago
  • 0.62.0                                ...           7 months ago
  • 0.61.0                                ...           7 months ago
  • 0.60.0                                ...           8 months ago
  • 0.59.0                                ...           9 months ago
  • 0.58.0                                ...           9 months ago
  • 0.57.0                                ...           10 months ago
  • 0.56.0                                ...           10 months ago
  • 0.55.1                                ...           a year ago
  • 0.55.0                                ...           a year ago
  • 0.54.0                                ...           a year ago
  • 0.53.0                                ...           a year ago
  • 0.52.3                                ...           a year ago
  • 0.52.2                                ...           a year ago
  • 0.52.0                                ...           a year ago
  • 0.51.0                                ...           a year ago
  • 0.50.0                                ...           a year ago
  • 0.49.0                                ...           a year ago
  • 0.48.0                                ...           2 years ago
  • 0.47.1                                ...           2 years ago
  • 0.47.0                                ...           2 years ago
  • 0.46.1                                ...           2 years ago
  • 0.46.0                                ...           2 years ago
  • 0.45.0                                ...           2 years ago
  • 0.44.0                                ...           2 years ago
  • 0.43.0                                ...           2 years ago
  • 0.42.0                                ...           2 years ago
  • 0.41.0                                ...           2 years ago
  • 0.40.0                                ...           2 years ago
  • 0.39.0                                ...           2 years ago
  • 0.38.1                                ...           3 years ago
  • 0.38.0                                ...           3 years ago
  • 0.37.0                                ...           3 years ago
  • 0.36.0                                ...           3 years ago
  • 0.35.0                                ...           3 years ago
  • 0.34.0                                ...           3 years ago
  • 0.33.4                                ...           3 years ago
  • 0.33.3                                ...           3 years ago
  • 0.33.2                                ...           3 years ago
  • 0.33.1                                ...           3 years ago
  • 0.33.0                                ...           3 years ago
  • 0.32.4                                ...           3 years ago
  • 0.32.3                                ...           4 years ago
  • 0.32.2                                ...           4 years ago
  • 0.32.1                                ...           4 years ago
  • 0.32.0                                ...           4 years ago
  • 0.31.1                                ...           4 years ago
  • 0.31.0                                ...           4 years ago
Downloads
Total 37
Today 0
This Week 34
This Month 36
Last Day 6
Last Week 1
Last Month 0
Dev Dependencies (14)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE