Skip to content

Conversation

@leoparente
Copy link
Contributor

This pull request introduces support for a new client type, DiodeOTLPClient, across both the device discovery and worker components. The logic for client initialization now falls back to using DiodeOTLPClient when client credentials are not provided, improving flexibility for different deployment scenarios. Additionally, the main entry points for both components have been updated to reflect these changes, and unused credential checks have been removed.

Support for OTLP client initialization

  • Added DiodeOTLPClient import and initialization logic in device_discovery/client.py and worker/policy/runner.py, enabling fallback to OTLP client when credentials are missing. [1] [2] [3] [4]

Updates to entry point scripts

  • Removed mandatory checks for --diode-client-id and --diode-client-secret arguments in device_discovery/main.py and worker/main.py, allowing operation without these credentials. [1] [2]
  • Updated client initialization logic in worker/main.py to ensure DiodeClient is only used when credentials are provided, otherwise falling back to OTLP client.

@leoparente leoparente self-assigned this Oct 30, 2025
@github-actions
Copy link

github-actions bot commented Nov 21, 2025

Coverage

Coverage Report
FileStmtsMissCoverMissing
device_discovery
   discovery.py63297%142–145
   main.py49296%181, 187
   metrics.py53198%114
   server.py821088%35–37, 63–78, 168, 171
   translate.py173299%87, 89
   version.py7186%14
device_discovery/policy
   manager.py41295%36–37
   runner.py118298%186–187
TOTAL6912297% 

Tests Skipped Failures Errors Time
79 0 💤 0 ❌ 0 🔥 3.008s ⏱️

@leoparente leoparente marked this pull request as ready for review November 21, 2025 12:02
@leoparente leoparente merged commit e624ca3 into develop Nov 21, 2025
10 checks passed
@leoparente leoparente deleted the feat/add-python-otlp-client-support branch November 21, 2025 12:23
@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