Add --telemetry-service-name CLI flag for OpenTelemetry service name override (#7903)

Allows users to customize the OpenTelemetry service name instead of using the hardcoded default `lighthouse`. Defaults to 'lighthouse-bn' for beacon node, 'lighthouse-vc' for validator client, or 'lighthouse' for other subcommands.

This is useful when analysing traces from multiple nodes, see Grafana screenshot below with service name overrides in Kurtosis (`ethereum-package` PR: https://github.com/ethpandaops/ethereum-package/pull/1160):

<img width="1148" height="627" alt="image" src="https://github.com/user-attachments/assets/7e875639-10f7-4756-837f-2006fa4b12e0" />
This commit is contained in:
Jimmy Chen
2025-08-20 11:16:34 +10:00
committed by GitHub
parent 34dd1b27ae
commit 95882bfa66
8 changed files with 52 additions and 1 deletions

View File

@@ -96,6 +96,10 @@ Options:
--telemetry-collector-url <URL>
URL of the OpenTelemetry collector to export tracing spans (e.g.,
http://localhost:4317). If not set, tracing export is disabled.
--telemetry-service-name <NAME>
Override the OpenTelemetry service name. Defaults to 'lighthouse-bn'
for beacon node, 'lighthouse-vc' for validator client, or 'lighthouse'
for other subcommands.
Flags:
--disable-deposits