Skip to content

OpenTelemetry instrumentation#16

Open
MarkusBauer wants to merge 5 commits intomainfrom
otel
Open

OpenTelemetry instrumentation#16
MarkusBauer wants to merge 5 commits intomainfrom
otel

Conversation

@MarkusBauer
Copy link

@MarkusBauer MarkusBauer commented Jan 30, 2026

This PR adds OpenTelemetry instrumentation to enochecker.
This includes logs, fastapi traces, and httpx traces.
All generated traces/logs are annotated with appropriate attributes (operation, variant, tick, ...).

Context is propagated from the gameserver to the checker, but not from the checker to the actual service.

Example traces generated with in-dev gameserver + fastvuln service. No change to the actual checker/service code is required.
grafik

To test this, set up an otel collector server. For the service:

  • Set the environment variable OTEL_EXPORTER_OTLP_ENDPOINT to the URL of your OpenTelemetry collector.
  • Set the environment variable OTEL_EXPORTER_OTLP_HEADERS_AUTHORIZATION to your authentication token.

Hint: enochecker3 is currently incompatible with Python 3.14. You might have to create a file .python-version with content 3.13 to fix that.
Background: old version of pydantic, included via enochecker3 => fastapi => pydantic. Newest fastapi does not fix this.

@MarkusBauer MarkusBauer requested a review from ldruschk January 30, 2026 17:06
@ldruschk ldruschk mentioned this pull request Feb 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant