refactor: update tracing service name handling in NodeManager
- Remove CLI flag for --tracing-otlp.service-name and set service name via OTEL_SERVICE_NAME environment variable.
- Adjust documentation to reflect the new method of service name differentiation for tracing in Jaeger.
- Ensure compatibility with existing tracing setup while simplifying the argument handling.
d248f39
4 hours ago
by yongkangc
+0.02%
revert
e5e6433
4 hours ago
by yongkangc
-26.19%
fix: add backticks to OTEL_SERVICE_NAME and long flag to service-name arg
- Add backticks around OTEL_SERVICE_NAME in doc comment to fix clippy::doc-markdown
- Add long flag 'tracing-otlp.service-name' to prevent clap from treating it as positional arg
- Add help_heading for consistency with other tracing args
7b29d33
2 hours ago
by yongkangc
+0.65%
refactor: use CLI arg instead of env var for OTLP service name
Address review feedback from @shekhirin to use --tracing-otlp.service-name
CLI argument instead of OTEL_SERVICE_NAME environment variable.
This approach provides:
- Better consistency (all tracing config via CLI args)
- Improved visibility in process listings
- More explicit configuration
Changes:
- Add --tracing-otlp.service-name=reth-{ref_type} to CLI args
- Remove OTEL_SERVICE_NAME env var setting
- Keep OTEL_BLRP_MAX_QUEUE_SIZE env var (still needed)
c8abe65
2 hours ago
by yongkangc
+0.8%
revert: use OTEL_SERVICE_NAME env var instead of CLI arg
Reverting c8abe6586 which attempted to use --tracing-otlp.service-name CLI flag.
The CLI flag approach doesn't work because reth-bench-compare builds and runs
reth binaries from arbitrary git refs (baseline-ref and feature-ref), which
may not have the --tracing-otlp.service-name flag if they're older commits.
Example failure:
error: unexpected argument '--tracing-otlp.service-name' found
The environment variable approach is correct here because:
- OTEL_SERVICE_NAME is a standard OpenTelemetry variable
- Works with any reth version that has OTLP support
- Does not depend on the binary having the CLI flag
This allows benchmarking between any two git refs, including older commits
that predate the --tracing-otlp.service-name flag addition.