Skip to content

feat: declarative telemetry events with weaver and xatu sentry receivers - #1551

Merged
samcm merged 9 commits into
pqfrom
feat/telemetry-events-weaver
Dec 3, 2026
Merged

samcm merged 9 commits into
pqfrom
feat/telemetry-events-weaver

Conversation

@samcm

@samcm samcm commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Lets client teams test their eth.telemetry event export in Kurtosis instead of only on a shared devnet.

participants:
  - cl_type: lighthouse
    cl_image: ethpandaops/lighthouse:pq-devnet-1
    vc_image: ethpandaops/lighthouse:pq-devnet-1
    telemetry_events: [pq]
    telemetry_receiver: weaver        # or xatu_sentry, or an OTLP/gRPC URL
additional_services:
  - weaver
  • telemetry_events: per participant, off by default. Adds --telemetry-events=<families> to the beacon node, and to the validator client if it supports the flag. Both also get OTEL_EXPORTER_OTLP_LOGS_ENDPOINT, OTEL_EXPORTER_OTLP_LOGS_PROTOCOL=grpc, a shared eth.node.id=<index>-<cl>-<el>, and OTEL_SERVICE_NAME set to their Kurtosis service name. Your own cl/vc_extra_env_vars win.
  • telemetry_receiver: required when events are on.
    • weaver needs weaver in additional_services.
    • xatu_sentry needs xatu_sentry_enabled on the participant and a sentry image with OTLP (ethpandaops/xatu:pq-devnet-1). That sentry gets an otlp config block and port 4317.
    • Anything else must be an OTLP/gRPC URL.
  • weaver additional service: otel/weaver:v0.28.0 running registry live-check against the spec registry, pinned to a commit (weaver_params.image / registry). It starts before the clients and logs one JSON line per record with its findings. POST /stop on its admin port logs a summary and starts a new session.
  • Only clients known to take the flag are allowed: Lighthouse and Prysm BNs, the Lighthouse VC. Any other client, or a missing or disabled receiver, fails at input parsing with a message saying what to fix.

docs/telemetry-events.md has a telemetry_summary shell function that prints one column per opted-in service and one row per event of the opted-in families, taken from the registry the weaver service checks against. A - means that service never sent the event, so a silent client or an unimplemented event stands out:

EVENT                   cl-1-lighthouse-geth  cl-2-prysm-geth  cl-3-lighthouse-geth  vc-1-geth-lighthouse  vc-3-geth-lighthouse
pq.aggregate_processed  9                     6                13                    -                     -
pq.aggregate_published  5                     8                1                     -                     -
pq.aggregate_received   9                     6                13                    -                     -
pq.aggregate_traffic    307                   183              301                   -                     -
pq.context              1                     1                1                     1                     -
pq.duty_completed       24                    23               14                    1                     -
pq.duty_scheduled       23                    83               1                     92                    -
pq.operation_admitted   14                    11               12                    -                     -
pq.operation_completed  14                    11               12                    -                     -
pq.validation_batch     -                     -                -                     -                     -
VIOLATIONS              0                     0                0                     0                     0

Docs: docs/telemetry-events.md. Example config: .github/tests/examples/telemetry-events.yaml.

Checking a different spec version

Point Weaver at a branch, tag, commit or fork of the spec and enable the families the client supports:

participants:
  - cl_type: lighthouse
    cl_image: <image with pq and cl events>
    vc_image: <image with pq and cl events>
    telemetry_events: [pq, cl]
    telemetry_receiver: weaver
additional_services:
  - weaver
weaver_params:
  registry: "https://github.com/ethDreamer/pq-measurement-spec.git@main[registry]"

New events in that registry show up as rows in telemetry_summary.

Running Weaver without Kurtosis

weaver registry live-check \
  -r 'https://github.com/ethDreamer/pq-measurement-spec.git@90c99625547d6d0d411662acff952350d48068a4[registry]' \
  --otlp-grpc-address 127.0.0.1 --otlp-grpc-port 4317 --admin-port 4320 --inactivity-timeout 0
# or -r ./registry from a clone of the spec repo
# or: docker run --rm -p 4317:4317 -p 4320:4320 otel/weaver:v0.28.0 registry live-check ... --otlp-grpc-address 0.0.0.0

OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=http://127.0.0.1:4317 \
OTEL_EXPORTER_OTLP_LOGS_PROTOCOL=grpc \
OTEL_RESOURCE_ATTRIBUTES=eth.node.id=my-node \
lighthouse bn ... --telemetry-events=pq

curl -X POST localhost:4320/stop   # prints the summary, exits 1 if there were violations

Use Weaver 0.28.0 (the version the spec pins). not_stable advisories are expected, because every attribute is development.

@redpandabot redpandabot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR adds opt-in per-participant telemetry event export, wires the affected beacon/validator clients to a new Weaver live-check service, and documents the configuration and workflow. I traced the input parsing, participant enrichment, service launch ordering, environment precedence, and Weaver invocation against the pinned registry and found no concrete defects.


Reviewed 8 changed file(s) @ 117b3f35 — no blocking issues found.
A red panda's scientific name, Ailurus fulgens, means "shining cat."

@samcm samcm changed the title feat: opt-in telemetry events with a Weaver live-check receiver feat: declarative telemetry events with weaver and xatu sentry receivers Dec 2, 2026

@redpandabot redpandabot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary

This PR adds opt-in eth.telemetry event export per participant with an explicit telemetry_receiver (weaver service, that participant's xatu sentry, or an OTLP/gRPC URL), a new weaver additional service running registry live-check, and the matching xatu sentry otlp config/port. The Weaver invocation, the admin /stop/restart behaviour and the sentry otlp block all match the upstream sources I checked. One naming-drift bug in the xatu sentry endpoint derivation is worth fixing; otherwise the change looks sound.

Issues

  • 🟡 src/package_io/input_parser.star:2844 — xatu sentry endpoint can be built with the wrong index width — see the thread on that line

Design Notes

💭 Derive the xatu sentry hostname from a shared naming helper? (src/package_io/input_parser.star)

  • Risk: The parser re-implements xatu-sentry-<index>-<cl>-<el> and the index width that participant_network.star owns, the exact drift the repo avoids with get_buildoor_service_name (shared_utils.star:89), and the MEV builder append already makes the two disagree.
  • Option: Add a get_xatu_sentry_service_name helper beside get_buildoor_service_name and use it from both the parser and the launcher so the name cannot diverge.

Reviewed @ a82a52ea
A red panda's scientific name, Ailurus fulgens, means "shining cat."

Comment thread src/package_io/input_parser.star Resolved
redpandabot[bot]

This comment was marked as outdated.

ampagent and others added 6 commits December 2, 2026 03:44
Add a per-participant telemetry_events option for clients that implement
the eth.telemetry event spec (https://github.com/ethDreamer/pq-measurement-spec).
A participant that sets it gets --telemetry-events=<families> on its beacon
node, and on its validator client when that client supports the flag, plus
OTEL_EXPORTER_OTLP_LOGS_ENDPOINT, OTEL_EXPORTER_OTLP_LOGS_PROTOCOL=grpc and
an eth.node.id resource attribute shared by the beacon node and validator
client. Participants that do not set it are unchanged.

When any participant opts in, a weaver service runs
`weaver registry live-check` (otel/weaver:v0.28.0) against the spec's
registry pinned to a commit, receives OTLP/gRPC and logs one JSON line
per record with its findings. POST /stop on its admin port prints the
session summary and starts a new session.

Lighthouse and prysm beacon nodes and the lighthouse validator client are
the clients whose pq-devnet-1 images take the flag; opting in on any
other cl_type fails while parsing the input.

Co-authored-by: Sam Calder-Mason <samcaldermason@gmail.com>
telemetry_events no longer starts weaver or points clients at it
implicitly. Each opted-in participant now sets telemetry_receiver:

- weaver: the weaver additional service, which must be listed in
  additional_services and is launched before the participants
- xatu_sentry: the participant's own xatu sentry, which must be enabled;
  its config gets an otlp block and its service an otlp-grpc port
- any OTLP/gRPC URL

A missing, unknown or disabled receiver, or a receiver without
telemetry_events, fails while parsing the input.

Co-authored-by: Sam Calder-Mason <samcaldermason@gmail.com>
Co-authored-by: Sam Calder-Mason <samcaldermason@gmail.com>
Co-authored-by: Sam Calder-Mason <samcaldermason@gmail.com>
The MEV builder participant is appended after the participant params are
parsed, which can widen the zero-padded index. Build eth.node.id and the
xatu sentry endpoint after that, through a get_pair_name helper the xatu
sentry launcher uses too.

Co-authored-by: Sam Calder-Mason <samcaldermason@gmail.com>
Co-authored-by: Sam Calder-Mason <samcaldermason@gmail.com>
@samcm
samcm force-pushed the feat/telemetry-events-weaver branch from 28d3370 to 7276a24 Compare December 2, 2026 03:48
@samcm
samcm changed the base branch from main to pq December 2, 2026 03:48

@redpandabot redpandabot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary

This PR adds opt-in per-participant eth.telemetry export (weaver, xatu_sentry or an OTLP/gRPC URL) on top of the pq-fork devnet support, plus a weaver live-check additional service. The earlier xatu-sentry index-width finding is fixed: both the parser and participant_network.star now use the shared get_pair_name helper, and the final participant list includes the MEV builder participant. Weaver's command flags and admin binding match weaver v0.28.0; only two low-severity documentation/repo-hygiene issues remain.

Issues

  • 🟢 README.md:1061 — README's nimbus/prysm xmss-cache note contradicts the launchers — The reference says "Nimbus and prysm have no such flag yet", but src/cl/nimbus/nimbus_launcher.star:252 and src/vc/prysm.star:96 now append --xmss-cache-url; the vrf_state_url list at line 1046 likewise omits the prysm, ethlambda and teku VCs that receive it. Users following the reference will misjudge which images and flags are wired.
  • 🟢 static_files/xmss-keys/b9dec4e1daa17dfe.vrf:0 — 11 MB of XMSS key files are committed but never referenced — Nothing reads static_files/xmss-keys/ (grep finds no reference; the defaults now point at pq-keys.ethpandaops.io), yet the 640 KB .bin and 10.28 MB .vrf are shipped with every package upload. Remove them unless a test path still needs them.

Reviewed @ 7276a247
A red panda's scientific name, Ailurus fulgens, means "shining cat."

Opted-in beacon nodes and validator clients get OTEL_SERVICE_NAME set to
their Kurtosis service name, unless the participant sets it, so Weaver's
records map to services. The cl and vc service names now come from
shared_utils helpers that cl_launcher and participant_network use too.

The README replaces the per-process one-liner with a telemetry_summary
function: one row per registry event and one column per opted-in
service, so silent services and events a client never sends show as -.
It also adds receiver examples for xatu sentry, an external collector,
a custom registry and running Weaver without Kurtosis.

Co-authored-by: Sam Calder-Mason <samcaldermason@gmail.com>

@redpandabot redpandabot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adds declarative eth.telemetry wiring to participants (telemetry_events / telemetry_receiver), a weaver live-check additional service, and OTLP support in the xatu sentry, plus docs and an example. The previous review's open finding (xatu-sentry endpoint built with a stale index width) is fixed: wiring now runs after the MEV builder participant is appended and both sides derive names from the shared get_pair_name helper. The latest commit's OTEL_SERVICE_NAME work correctly mirrors the Kurtosis service naming in cl_launcher/participant_network, and I found no remaining defects in the change.


Reviewed 13 changed file(s) @ 031c0890 — no blocking issues found.
A red panda's scientific name, Ailurus fulgens, means "shining cat."

Co-authored-by: Sam Calder-Mason <samcaldermason@gmail.com>
@redpandabot

This comment has been minimized.

telemetry_summary no longer carries a copy of the event list. It reads
the registry from the weaver service's command, resolves it with
`weaver registry resolve` inside that service, and keeps the event
groups of the opted-in families (pq.*, eth.cl.*), so new events in a
custom or newer registry show up as rows. Adds a section on checking a
different spec version through weaver_params.registry.

Co-authored-by: Sam Calder-Mason <samcaldermason@gmail.com>
@samcm
samcm merged commit fc727a7 into pq Dec 3, 2026
12 of 15 checks passed
@samcm
samcm deleted the feat/telemetry-events-weaver branch December 3, 2026 05:07
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