Skip to main content

Generic OTel Configuration

The generic configuration is applicable for all traces, logs and metrics. It must be applied to use observability in Godspeed. It includes setting up various OTel environment variables and the framework environment variables.

Enable OTel

Enable OTel in your service using Godspeed CLI by setting OTEL_ENABLED to true. You can alternatively set it in the .env file of your service.

export OTEL_ENABLED=true

Specify the service name

Specify the service name by which you want to setup observability. Set it as env variable or in the .env file of your service.

export OTEL_SERVICE_NAME=sample_proj1