Skip to content

Add an option that applies a patch to emit OTel metrics & logs - #1

Draft
agagniere wants to merge 2 commits into
masterfrom
otel
Draft

agagniere wants to merge 2 commits into
masterfrom
otel

Conversation

@agagniere

Copy link
Copy Markdown
Member

No description provided.

@agagniere agagniere self-assigned this Oct 30, 2026
Add dnsmasq.query.duration, a histogram of the time from a query arriving
to its reply being sent, by whether dnsmasq answered (local) or waited for
an upstream server (upstream, retries included). It has its own buckets,
from 0.02 ms, as the SDK's defaults start at 5 ms.

Local answers are sent from receive_query and, for --address and errors,
from forward_query, so both are hooked. The requesters waiting for a
server are told apart by the address of their frec_src, in a small table
in glue.c: patching dnsmasq.h would give the unpatched sources another
layout.

Export metrics every second by default: the collector is on the same
machine and batches for the backend.

Assisted-by: Claude Sonnet 5.5
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