Additional OpenTelemetry instrumentations

Don't hesitate to contact us if you run into any issues while implementing custom instrumentations. We're here to help!

In addition to the already included instrumentations, you can also add custom ones as long as they comply with the structure of an OpenTelemetry automatic instrumentation.

Setup

Using the additionalInstrumentations config option you can add additional instrumentations that will create spans and send them to AppSignal.

Below is an example of how to use additionalInstrumentations in your application:

javascript
const { CustomInstrumentation, } = require("opentelemetry-custom-instrumentation"); new Appsignal({ active: true, name: "<YOUR APPLICATION NAME>", pushApiKey: "<YOUR API KEY>", additionalInstrumentations: [ new CustomInstrumentation({ // instrumentation config here }), ], });