botpress / messaging

Botpress messaging server
42 stars 37 forks source link

chore(tracing): added tracing to messaging server #503

Closed michaelmass closed 2 years ago

michaelmass commented 2 years ago

This adds an Opentelemetry tracing library to the messaging server. It can be configured by using the standard environment variables.

The trace initialization MUST be done before importing any other package since it instruments known libraries like express, knex, pg. This also requires the trace initialization to be synced.

The important environment variables for configuring tracing are:

This is an example of what the tracing library allows:

image

CLAassistant commented 2 years ago

CLA assistant check
All committers have signed the CLA.