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:

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

Need more help?

Contact us and speak directly with the engineers working on AppSignal. They will help you get set up, tweak your code and make sure you get the most out of using AppSignal.

Contact us

Start a trial - 30 days free

AppSignal is a great way to monitor your Ruby, Elixir & Node.js applications. Works great with Rails, Phoenix, Express and other frameworks, with support for background jobs too. Let's improve your apps together.

Start a trial