Skip to content

Comments

feat: add Diode OTLPClient#49

Merged
leoparente merged 13 commits intodevelopfrom
feat/OBS-1556-queue-client
Oct 30, 2025
Merged

feat: add Diode OTLPClient#49
leoparente merged 13 commits intodevelopfrom
feat/OBS-1556-queue-client

Conversation

@leoparente
Copy link
Contributor

@leoparente leoparente commented Oct 23, 2025

This pull request adds support for exporting entities as OpenTelemetry (OTLP) log records via a new OTLPClient, allowing integration with OTLP collectors over gRPC. It also introduces comprehensive tests for the new client and updates several dependencies to support OTLP functionality.

New OTLP client functionality:

  • Added OTLPClient implementation in diode/otlp_client.go to convert ingestion entities into OTLP log records and export them over gRPC, including support for TLS, custom timeouts, and error handling via OTLPClientError.
  • Updated documentation in README.md to describe the new OTLP client usage, configuration, and error handling.

Testing and validation:

  • Added diode/otlp_client_test.go with unit tests covering successful log export, error wrapping, and client validation for supported schemes.

Dependency updates:

  • Updated go.mod to add go.opentelemetry.io/proto/otlp and bump related dependencies (google.golang.org/grpc, google.golang.org/protobuf, etc.) for OTLP compatibility.

@leoparente leoparente self-assigned this Oct 23, 2025
@github-actions github-actions bot added documentation Improvements or additions to documentation dependencies go markdown labels Oct 23, 2025
@github-actions
Copy link

github-actions bot commented Oct 23, 2025

Go test coverage

STATUS ELAPSED PACKAGE COVER PASS FAIL SKIP
🟢 PASS 0.00s github.com/netboxlabs/diode-sdk-go/cmd/diode-replay-dryrun 0.0% 0 0 0
🟢 PASS 1.35s github.com/netboxlabs/diode-sdk-go/diode 20.1% 258 0 0

Total coverage: 74.8%

@leoparente leoparente marked this pull request as ready for review October 29, 2025 14:27
leoparente and others added 7 commits October 29, 2025 13:12
Co-authored-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
Co-authored-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
Co-authored-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
Co-authored-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
Co-authored-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
Co-authored-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
@leoparente leoparente merged commit bb1f649 into develop Oct 30, 2025
6 checks passed
@leoparente leoparente deleted the feat/OBS-1556-queue-client branch October 30, 2025 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies documentation Improvements or additions to documentation go markdown

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants