mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 16:59:26 +00:00
The --rpc.telemetry.sample-ratio CLI flag declares a default of 1.0, but cmd/utils.setOpenTelemetry only copies the flag value into the node config when ctx.IsSet returns true. Without a corresponding default on node.DefaultConfig.OpenTelemetry.SampleRatio, omitting the flag leaves the runtime ratio at the float64 zero value, which causes sdktrace.TraceIDRatioBased(0) to drop 100% of spans. Users see "OpenTelemetry trace export enabled" but no traces ever leave geth. Seed the default in DefaultConfig so the documented behavior matches runtime behavior. |
||
|---|---|---|
| .. | ||
| api.go | ||
| api_test.go | ||
| config.go | ||
| config_test.go | ||
| database.go | ||
| defaults.go | ||
| doc.go | ||
| endpoints.go | ||
| errors.go | ||
| jwt_auth.go | ||
| jwt_handler.go | ||
| lifecycle.go | ||
| node.go | ||
| node_auth_test.go | ||
| node_example_test.go | ||
| node_test.go | ||
| rpcstack.go | ||
| rpcstack_test.go | ||
| utils_test.go | ||