@opentelemetry/instrumentation-connect
OpenTelemetry instrumentation for `connect` http middleware framework
Last updated 16 days ago by GitHub Actions .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @opentelemetry/instrumentation-connect 
SYNC missed versions from official npm registry.

OpenTelemetry Connect Instrumentation for Node.js

NPM Published Version Apache License

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

Status

Maturity Component Owner Compatibility
Unmaintained N/A API 1.0+
SDK 1.0+

Installation

This instrumentation relies on HTTP calls to also be instrumented. Make sure you install and enable both, otherwise you will have spans that are not connected to each other.

npm install --save @opentelemetry/instrumentation-http @opentelemetry/instrumentation-connect

Supported Versions

Usage

OpenTelemetry Connect Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.

To load the instrumentation, specify it in the Node Tracer's configuration:

const { NodeTracerProvider } = require('@opentelemetry/sdk-trace-node');
const { registerInstrumentations } = require('@opentelemetry/instrumentation');
const { HttpInstrumentation } = require('@opentelemetry/instrumentation-http');
const { ConnectInstrumentation } = require('@opentelemetry/instrumentation-connect');

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

registerInstrumentations({
  instrumentations: [
    // Connect instrumentation expects HTTP layer to be instrumented
    new HttpInstrumentation(),
    new ConnectInstrumentation(),
  ],
});

See examples/connect for a short example.

Semantic Conventions

This package implements Semantic Convention v1.33.1.

Attributes collected:

Attribute Short Description
http.route The matched route (path template).

Useful links

License

Apache 2.0 - See LICENSE for more information.

Current Tags

  • 0.57.0                                ...           latest (16 days ago)

47 Versions

  • 0.57.0                                ...           16 days ago
  • 0.56.0                                ...           a month ago
  • 0.55.0                                ...           2 months ago
  • 0.54.0                                ...           3 months ago
  • 0.53.0                                ...           3 months ago
  • 0.52.0                                ...           5 months ago
  • 0.51.0                                ...           6 months ago
  • 0.50.0                                ...           6 months ago
  • 0.49.2                                ...           6 months ago
  • 0.49.1                                ...           6 months ago
  • 0.49.0                                ...           7 months ago
  • 0.48.0                                ...           7 months ago
  • 0.47.0                                ...           9 months ago
  • 0.46.0                                ...           10 months ago
  • 0.45.0                                ...           a year ago
  • 0.44.0                                ...           a year ago
  • 0.43.1                                ...           a year ago
  • 0.25.0                                ...           5 years ago
  • 0.43.0                                ...           a year ago
  • 0.42.0                                ...           a year ago
  • 0.41.0                                ...           a year ago
  • 0.40.0                                ...           a year ago
  • 0.39.0                                ...           2 years ago
  • 0.38.0                                ...           2 years ago
  • 0.37.0                                ...           2 years ago
  • 0.36.1                                ...           2 years ago
  • 0.36.0                                ...           2 years ago
  • 0.35.0                                ...           2 years ago
  • 0.34.0                                ...           2 years ago
  • 0.33.0                                ...           2 years ago
  • 0.32.4                                ...           2 years ago
  • 0.32.3                                ...           2 years ago
  • 0.32.2                                ...           3 years ago
  • 0.32.1                                ...           3 years ago
  • 0.32.0                                ...           3 years ago
  • 0.31.4                                ...           3 years ago
  • 0.31.3                                ...           3 years ago
  • 0.31.2                                ...           3 years ago
  • 0.31.1                                ...           3 years ago
  • 0.31.0                                ...           3 years ago
  • 0.30.1                                ...           3 years ago
  • 0.30.0                                ...           4 years ago
  • 0.29.0                                ...           4 years ago
  • 0.28.0                                ...           4 years ago
  • 0.27.1                                ...           4 years ago
  • 0.27.0                                ...           4 years ago
  • 0.26.0                                ...           4 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 44
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |