Skip to content

feat: exporta OTLP opt-in sem derrubar o proxy - #11

Merged
DenisCDev merged 1 commit into
mainfrom
feat/optional-otlp-export
Sep 14, 2026
Merged

DenisCDev merged 1 commit into
mainfrom
feat/optional-otlp-export

Conversation

@DenisCDev

Copy link
Copy Markdown
Owner

Export OTLP opt-in. Só liga com OTEL_EXPORTER_OTLP_ENDPOINT / FERROADA_OTLP_ENDPOINT. Sem endpoint, zero socket extra.

Collector morto incrementa otel_export_failed e o proxy continua. Ring buffer e JSON do dashboard permanecem. Sem Authorization no export. Helm, SBOM e OIDC ficam de fora.

Sem OTEL_EXPORTER_OTLP_ENDPOINT (ou FERROADA_OTLP_ENDPOINT) o processo
não abre socket extra. Com endpoint, um worker posta métricas e um span
por request (método, rota, allow/deny, event_type) em HTTP/JSON, timeout
curto. Collector morto ou HTTP 5xx só incrementa otel_export_failed; a
inspeção segue. Ring e JSON do dashboard não mudam. Authorization, cookie,
body, token, CPF e query não saem no export.

cargo clippy --all-targets -- -D warnings limpo; cargo test --lib 337 ok;
cargo test --test otel 4 ok; cargo test --test origin 5 ok
@DenisCDev
DenisCDev merged commit e77f633 into main Sep 14, 2026
5 checks passed
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