Repository navigation
feat(otel): LoggerProvider so Boar logs reach Loki (#1529) - #1544
Merged
Merged
Conversation
…1529) Wire OTLP logs beside traces/metrics (same gap class as OpenLIT-without-logs) and record lab E2E proof via Grafana Loki query_range.
3 of 4 tasks
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.
Summary
LoggerProvider+BatchLogRecordProcessor+OTLPLogExporterincore/otel_setup.py, same endpoint/insecure policy as traces/metrics.opentelemetry.instrumentation.logging.LoggingHandler(extra[otel]dep); emitboar_fast_filterstatus line after setup.otlpreceiver →otlp_http/logs); no currentsend_failedon that path.docs/ops/evidence/otel_1529_loggerprovider_loki_2026-08-12.json— Grafana Lokiquery_rangereturned 5 lines for markerdb1529-e2e2-1786537170withservice_name=data-boar.Closes #1529
Test plan
uv run pytest tests/test_otel_setup_1500.py -v(LoggerProvider + stdlib bridge unit coverage)./scripts/check-all.shgreen locally (pre-commit + full pytest + Bandit/Zizmor)DATA_BOAR_OTEL_ENABLED=1andOTEL_EXPORTER_OTLP_ENDPOINT=http://127.0.0.1:4317, emit unique marker logs +force_flushGET /api/datasources/proxy/uid/loki/loki/api/v1/query_rangewith{service_name="data-boar"} |= "<marker>"— matching lines in Loki (not code-only)otelcol_receiver_accepted_log_records_total{receiver="otlp"}andotelcol_exporter_sent_log_records_total{exporter="otlp_http/logs"}increased; no livesend_failedon OTLP logs path