botpress / nlu

This repo contains every ML/NLU related code written by Botpress in the NodeJS environment. This includes the Botpress Standalone NLU Server.
22 stars 21 forks source link

chore(telementry/tracing): improved tracing configuration & added prometheus to lang server #208

Closed michaelmass closed 1 year ago

michaelmass commented 2 years ago

This adds an Opentelemetry tracing library to the NLU & Lang 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