GeneXus enables that the telemetry data (traces, logs and metrics) of applications be sent to Lightstep Observability.
The steps you must follow are:
- Accessing Lightstep.
- Set the Observability Provider property.
- Deploy your application.
- Configure the Environment Variables.
- Executing the application’s Docker image.
To start using this platform, the first thing you must do is create an account.
Then you must create a Lightstep access token. Make sure that you save the token generated.
Go to GeneXus and set the Observability Provider property to "OpenTelemetry" value.
Use the deployment engine tool to deploy your app to Docker (builds a Docker image).
Configure the following environment variables in the application’s Docker Image:
OTEL_EXPORTER_OTLP_TRACES_HEADERS: "lightstep-access-token=<YOUR_ACCESS_TOKEN>"
OTEL_SERVICE_NAME: "<service_name>"
OTEL_EXPORTER_OTLP_PROTOCOL: grpc
OTEL_EXPORTER_OTLP_ENDPOINT: "https://ingest.lightstep.com:443"
OTEL_TRACES_EXPORTER: logging,otlp
OTEL_METRICS_EXPORTER: logging,otlp
Where YOUR_ACCESS_TOKEN corresponds to the Lightstep access token obtained before.
And to end, execute the application’s Docker image.
When you execute the app and make changes to it, you will be able to, for example, view the traces.
Generator: Java
This functionality is available since GeneXus 18 Upgrade 4.