We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This PR is auto-generated from hashicorp#20519 to be assessed for backporting due to the inclusion of the label backport/1.18.
The below text is copied from the body of the original PR.
I'm seeing redundant log lines on failures to push metrics to HCP:
2024-02-07T14:22:37.358Z [ERROR] agent.hcp.hcp_telemetry_client: request failed: error="Post "https://consul-telemetry.hcp.dev/otlp/v1/metrics\": http2: Transport: cannot retry err [http2: Transport received Server's graceful shutdown GOAWAY] after Request.Body was written; define Request.GetBody to avoid this error" method=POST url=https://consul-telemetry.hcp.dev/otlp/v1/metrics
2024/02/07 14:22:37 failed to export metrics: failed to post metrics: POST https://consul-telemetry.hcp.dev/otlp/v1/metrics giving up after 1 attempt(s): Post "https://consul-telemetry.hcp.dev/otlp/v1/metrics": http2: Transport: cannot retry err [http2: Transport received Server's graceful shutdown GOAWAY] after Request.Body was written; define Request.GetBody to avoid this error
We log in two places:
The fix here is to pass a NullLogger to the http client so:
hcp.telemetry
An alternative approach is to combine this PR with the other logging-related PR: hashicorp#20514. And:
ExportMetrics
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Backport
This PR is auto-generated from hashicorp#20519 to be assessed for backporting due to the inclusion of the label backport/1.18.
The below text is copied from the body of the original PR.
Description
I'm seeing redundant log lines on failures to push metrics to HCP:
We log in two places:
The fix here is to pass a NullLogger to the http client so:
hcp.telemetry
group logs: Fix logging when we fail to export metrics to hcp hashicorp/consul#20514An alternative approach is to combine this PR with the other logging-related PR: hashicorp#20514. And:
ExportMetrics
Testing & Reproduction steps
Links
PR Checklist
Overview of commits
The text was updated successfully, but these errors were encountered: