Socket
Socket
Sign inDemoInstall

node-red-contrib-opentelemetry

Package Overview
Dependencies
10
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    node-red-contrib-opentelemetry

Distributed tracing with OpenTelemetry SDK for Node-RED


Version published
Weekly downloads
149
increased by2.76%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Node-RED OpenTelemetry

license: AGPLv3 GitHub release GitHub Lint Workflow Status GitHub Publish Workflow Status npm

Distributed tracing with OpenTelemetry SDK for Node-RED.

Key features

  • based on messaging hooks:
    • create spans on onSend(source) and postDeliver(destination) events,
    • end spans on onComplete and postDeliver(source) events.
  • trace includes:
    • message id,
    • flow id,
    • node id,
    • node type,
    • node name (if filled),
    • hostname,
    • optionally http status code (for request node type),
    • optionally exception.

Example

Installation

Search node-red-contrib-opentelemetry within the palette manager or install with npm from the command-line (within your user data directory):

npm install node-red-contrib-opentelemetry

As with every node installation, you will need to restart Node-RED for it to pick-up the new nodes.

Usage

  • Add OTEL node once (to any flow),
  • Setup the node:
    • set OTEL exporter url (example for Jaeger: http://localhost:4318/v1/traces),
    • define a service name (will be displayed as span service),
    • define an optional root span prefix (will be added in Node-RED root span name),
    • define nodes that should not send traces (using comma-separated list like debug,catch),
    • define nodes that should propagate W3C trace context (in http request headers, using comma-separated list like http request,my-custom-node),
    • define time in seconds after which an unmodified message will be ended and deleted,

Versioning

node-red-contrib-opentelemetry is maintained under the semantic versioning guidelines.

See the releases on this repository for changelog.

Contributors

  • Nioc - Initial work
  • Wodka - AMQP headers and CompositePropagator (Jaeger, W3C, B3)

See also the full list of contributors to this project.

License

This project is licensed under the GNU Affero General Public License v3.0 - see the LICENSE file for details

Keywords

FAQs

Last updated on 29 Nov 2023

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