Skip to content

Conversation

@leoparente
Copy link
Contributor

This pull request introduces improvements to client configuration and metadata handling for both the network and SNMP discovery services. The main changes include updating how Diode clients are initialized to support OTLP (OpenTelemetry Protocol) connections, passing policy metadata during entity ingestion, and updating dependencies across both services for compatibility and security.

Client initialization and configuration:

  • Updated client initialization logic in network-discovery/cmd/main.go and snmp-discovery/cmd/main.go to support OTLP connections when client credentials are not provided, allowing more flexible deployment scenarios. [1] [2] [3] [4]

Metadata handling for ingestion:

  • Modified the Ingest calls in both network-discovery/policy/runner.go and snmp-discovery/policy/runner.go to pass policy metadata (specifically, policy_name) with each ingestion, improving traceability of ingested data. [1] [2]

Dependency updates:

  • Updated diode-sdk-go and OpenTelemetry dependencies to newer versions in both network-discovery/go.mod and snmp-discovery/go.mod, ensuring compatibility with the new client features and improving security. [1] [2]
  • Updated several indirect dependencies for logging, gRPC, protobuf, and other libraries to their latest versions for both services. [1] [2] [3] [4]

Test suite compatibility:

  • Updated mock client interfaces in test files to accept variadic diode.IngestOption arguments, maintaining compatibility with the new ingestion method signatures. [1] [2] [3] [4]

@leoparente leoparente self-assigned this Nov 17, 2025
@github-actions
Copy link

github-actions bot commented Nov 17, 2025

Go test coverage

Status Elapsed Package Cover Pass Fail Skip
🟢 PASS 1.02s github.com/netboxlabs/orb-discovery/snmp-discovery/config 100.0% 8 0 0
🟢 PASS 4.97s github.com/netboxlabs/orb-discovery/snmp-discovery/data 84.0% 55 0 0
🟢 PASS 1.02s github.com/netboxlabs/orb-discovery/snmp-discovery/env 85.7% 15 0 0
🟢 PASS 1.11s github.com/netboxlabs/orb-discovery/snmp-discovery/mapping 90.8% 240 0 0
🟢 PASS 1.02s github.com/netboxlabs/orb-discovery/snmp-discovery/metrics 83.6% 24 0 0
🟢 PASS 15.10s github.com/netboxlabs/orb-discovery/snmp-discovery/policy 87.5% 35 0 0
🟢 PASS 1.96s github.com/netboxlabs/orb-discovery/snmp-discovery/server 85.5% 19 0 0
🟢 PASS 1.03s github.com/netboxlabs/orb-discovery/snmp-discovery/snmp 79.4% 37 0 0
🟢 PASS 1.02s github.com/netboxlabs/orb-discovery/snmp-discovery/targets 100.0% 23 0 0
🟢 PASS 1.01s github.com/netboxlabs/orb-discovery/snmp-discovery/version 100.0% 1 0 0
Total coverage: 88.0%

@leoparente leoparente marked this pull request as ready for review November 21, 2025 12:20
@leoparente leoparente merged commit ada09e8 into develop Nov 21, 2025
8 checks passed
@leoparente leoparente deleted the feat/add-metadata-go-backends branch November 21, 2025 12:42
@github-actions
Copy link

🎉 This PR is included in version 1.5.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions
Copy link

🎉 This PR is included in version 1.10.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions
Copy link

🎉 This PR is included in version 1.11.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions
Copy link

🎉 This PR is included in version 1.8.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants