pulsar
pulsar copied to clipboard
pulsar-perf tool constant print WARNING: Failed to export metrics
Search before asking
- [X] I searched in the issues and found nothing similar.
Motivation
pulsar-perf is constant print warning message every minute during running perf testing, IMO, it's reasonable to disable openTelemetry by default in pulsar-perf tool.
Oct 17, 2024 8:17:26 AM io.opentelemetry.sdk.internal.ThrottlingLogger doLog
WARNING: Failed to export metrics. Server responded with gRPC status code 2. Error message: Failed to connect to localhost/127.0.0.1:4317
...
Oct 17, 2024 8:18:26 AM io.opentelemetry.sdk.internal.ThrottlingLogger doLog
WARNING: Failed to export metrics. Server responded with gRPC status code 2. Error message: Failed to connect to localhost/127.0.0.1:4317
Solution
No response
Alternatives
Workaround:
export OTEL_SDK_DISABLED=true before start pulsar-perf script.
According https://opentelemetry.io/docs/languages/java/configuration/#properties-general
Anything else?
No response
Are you willing to submit a PR?
- [X] I'm willing to submit a PR!