Repository navigation
feat: declarative telemetry events with weaver and xatu sentry receivers - #1551
Conversation
There was a problem hiding this comment.
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."
There was a problem hiding this comment.
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 thatparticipant_network.starowns, the exact drift the repo avoids withget_buildoor_service_name(shared_utils.star:89), and the MEV builder append already makes the two disagree. - Option: Add a
get_xatu_sentry_service_namehelper besideget_buildoor_service_nameand 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."
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>
28d3370 to
7276a24
Compare
There was a problem hiding this comment.
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", butsrc/cl/nimbus/nimbus_launcher.star:252andsrc/vc/prysm.star:96now append--xmss-cache-url; thevrf_state_urllist 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 readsstatic_files/xmss-keys/(grep finds no reference; the defaults now point at pq-keys.ethpandaops.io), yet the 640 KB.binand 10.28 MB.vrfare 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>
There was a problem hiding this comment.
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>
This comment has been minimized.
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>
Lets client teams test their
eth.telemetryevent export in Kurtosis instead of only on a shared devnet.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 getOTEL_EXPORTER_OTLP_LOGS_ENDPOINT,OTEL_EXPORTER_OTLP_LOGS_PROTOCOL=grpc, a sharedeth.node.id=<index>-<cl>-<el>, andOTEL_SERVICE_NAMEset to their Kurtosis service name. Your owncl/vc_extra_env_varswin.telemetry_receiver: required when events are on.weaverneedsweaverinadditional_services.xatu_sentryneedsxatu_sentry_enabledon the participant and a sentry image with OTLP (ethpandaops/xatu:pq-devnet-1). That sentry gets anotlpconfig block and port 4317.weaveradditional service:otel/weaver:v0.28.0runningregistry live-checkagainst 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 /stopon itsadminport logs a summary and starts a new session.docs/telemetry-events.mdhas atelemetry_summaryshell function that prints one column per opted-in service and one row per event of the opted-in families, taken from the registry theweaverservice checks against. A-means that service never sent the event, so a silent client or an unimplemented event stands out: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:
New events in that registry show up as rows in
telemetry_summary.Running Weaver without Kurtosis
Use Weaver 0.28.0 (the version the spec pins).
not_stableadvisories are expected, because every attribute isdevelopment.