Repository navigation
Structured JSON logs with optional OpenTelemetry OTLP export - #9
Merged
Merged
Conversation
Server and worker emit one JSON line per event (OTel field names, stable messages, run/worker attributes) so any stdout shipper can ingest them. When OTEL_EXPORTER_OTLP_ENDPOINT is set, the same records go out over OTLP/HTTP — Datadog, Grafana, or any collector — without a vendor SDK. Co-authored-by: Doug Rathbone <dougrathbone@users.noreply.github.com>
dougrathbone
marked this pull request as ready for review
September 12, 2026 00:42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Server and
conduit-workernow emit structured JSON logs and can optionally export the same records over OpenTelemetry OTLP/HTTP. Nothing here is Datadog-specific: stdout works with any shipper, and OTLP works with any collector (Datadog agent, Grafana Alloy, contrib Collector, Honeycomb, …).Why
Datadog had no Conduit application logs — only misrouted
conduit.dovetail.comedge traffic. Operational events wereconsole.logstrings that do not cluster or facet. This covers:CONDUIT_LOG_STDOUT=false) so kube/journald/CloudWatch/DD agents can tail a stable schema.OTEL_*env vars.Behavior
logfromsrc/server/logging/(src/shared/logging.tsfor types/format). Messages stay stable; IDs live in attributes (runId,workerId,component,exception.*).service.namedefaults toconduit/conduit-workerfromCONDUIT_PROCESS_MODE; override withOTEL_SERVICE_NAME.OTEL_EXPORTER_OTLP_ENDPOINTorOTEL_EXPORTER_OTLP_LOGS_ENDPOINTis set.OTEL_SDK_DISABLED=trueorOTEL_LOGS_EXPORTER=nonealso skips export.observability/instrumentpath (now also on the worker). Shutdown flushes OTLP buffers.Example stdout line:
{"timestamp":"2026-09-12T00:00:00.000Z","severity":"WARN","level":"warn","body":"Worker lease expired","message":"Worker lease expired","service.name":"conduit","workerId":"eks-…"}Deploy notes
No OTLP endpoint required. To export:
Tests
npx tsc --noEmit(server + web)npm test