Skip to content

refactor(connd): use new datadog client#1238

Merged
vmenge merged 1 commit into
mainfrom
vm/shared-dd-client
May 28, 2026
Merged

refactor(connd): use new datadog client#1238
vmenge merged 1 commit into
mainfrom
vm/shared-dd-client

Conversation

@vmenge
Copy link
Copy Markdown
Collaborator

@vmenge vmenge commented May 28, 2026

changes

  • connd to use shared datadog client

@vmenge vmenge requested a review from a team as a code owner May 28, 2026 09:12
@github-actions
Copy link
Copy Markdown

Found two issues:

  1. orb-connd/src/main.rs:116 switches connd to orb_dogd::DogstatsdClient, but that client only waits for /run/datadog/dsd.socket and no longer preserves the old UDP fallback. The deleted local client explicitly fell back to dogstatsd::Options::default() when the socket was absent, so on systems where DogStatsD is reachable over UDP but the UDS is missing, connd will stop emitting metrics.

  2. orb-connd/src/reporters/datadog.rs:69, :76, :94, :100 and orb-connd/src/reporters/data_usage.rs:47, :55 now discard MetricEmitter errors. orb-dogd returns errors when its bounded queue is full or the worker dies; the old code propagated these with ?, so the reporter logged/restarted. Please at least log these failures, otherwise metric loss from backpressure/worker failure becomes invisible.

I couldn’t run cargo check in this sandbox because rustup failed to create temp files on the read-only filesystem.

@vmenge
Copy link
Copy Markdown
Collaborator Author

vmenge commented May 28, 2026

Found two issues:

  1. orb-connd/src/main.rs:116 switches connd to orb_dogd::DogstatsdClient, but that client only waits for /run/datadog/dsd.socket and no longer preserves the old UDP fallback. The deleted local client explicitly fell back to dogstatsd::Options::default() when the socket was absent, so on systems where DogStatsD is reachable over UDP but the UDS is missing, connd will stop emitting metrics.
  2. orb-connd/src/reporters/datadog.rs:69, :76, :94, :100 and orb-connd/src/reporters/data_usage.rs:47, :55 now discard MetricEmitter errors. orb-dogd returns errors when its bounded queue is full or the worker dies; the old code propagated these with ?, so the reporter logged/restarted. Please at least log these failures, otherwise metric loss from backpressure/worker failure becomes invisible.

I couldn’t run cargo check in this sandbox because rustup failed to create temp files on the read-only filesystem.

two issues according to whom

plz evaporate

@vmenge vmenge merged commit 17e20be into main May 28, 2026
26 checks passed
@vmenge vmenge deleted the vm/shared-dd-client branch May 28, 2026 09:20
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.

2 participants