Traces

Alfred Inflow can be traces using open telemetry.

Prerequisites

You need to inject the OpenTelemetry java agent.
See also opentelemetry-java-instrumentation

Configuration

You need to configure

  • OpenTelemetry java agent to the Java OPTS (e.g. via environment variable)
  • Set the exporter to otlp
  • Set service name to inflow
  • Set the endpoint to which the OpenTelemetry Exporter will publish the traces for scraping (e.g. in docker to http://host.docker.internal:4317

E.g. with docker-compose

environment:
  - JAVA_TOOL_OPTIONS=-javaagent:/opt/opentelemetry/opentelemetry-javaagent.jar
  - OTEL_SERVICE_NAME=inflow
  - OTEL_TRACES_EXPORTER=otlp
  - OTEL_EXPORTER_OTLP_ENDPOINT=http://host.docker.internal:4317