Skip to content

test(otlp): add local HTTP export integration test#97

Merged
NewYaroslav merged 1 commit into
mainfrom
test/otlp-http-server-v2
May 16, 2026
Merged

test(otlp): add local HTTP export integration test#97
NewYaroslav merged 1 commit into
mainfrom
test/otlp-http-server-v2

Conversation

@NewYaroslav
Copy link
Copy Markdown
Owner

Summary

  • Add an OTLP integration test that starts a local SimpleWeb::Server<HTTP> endpoint.
  • The test exposes:
    • GET /health for readiness polling.
    • POST /v1/logs for capturing the OTLP payload.
  • It configures OtlpHttpLogger to export to the local server and verifies the captured JSON contains expected OTLP fields.

Notes

  • The test is guarded by LOGIT_WITH_OTLP; without OTLP it becomes a no-op executable.
  • The test avoids requiring a real OpenTelemetry Collector or Loki instance.

Testing

Not run in this environment.

@NewYaroslav NewYaroslav merged commit 1d3804b into main May 16, 2026
12 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