Manual Backport of [HCP Telemetry] Move first TelemetryConfig Fetch into the TelemetryConfigProvider into release/1.15.x#18627
Conversation
…nfigProvider (#18318) * Add Enabler interface to turn sink on/off * Use h for hcpProviderImpl vars, fix PR feeback and fix errors * Keep nil check in exporter and fix tests * Clarify comment and fix function name * Use disable instead of enable * Fix errors nit in otlp_transform * Add test for refreshInterval of updateConfig * Add disabled field in MetricsConfig struct * Fix PR feedback: improve comment and remove double colons * Fix deps test which requires a maybe * Update hcp-sdk-go to v0.61.0 * use disabled flag in telemetry_config.go * Handle 4XX errors in telemetry_provider * Fix deps test * Check 4XX instead * Run make go-mod-tidy
b026dd8 to
0ab3ba9
Compare
|
Oh I think its supposed to get skipped but this is broken 🤔 This is from a different PR that got back ported recently, and has the same failure : #18599 |
test-integ/go.mod
Outdated
| @@ -0,0 +1,246 @@ | |||
| module github.com/hashicorp/consul/test-integ | |||
There was a problem hiding this comment.
What is this test-integ module for ? Also don't love a hypen in a package name https://go.dev/blog/package-names
Finally this is under consul which means it's a integration test for all of consul which I don't think you were intending to make? Let me know what you think.
There was a problem hiding this comment.
Oh thanks - I need to remove this. I just cherry-picked the original commit. It's because main has these files (https://github.com/hashicorp/consul/tree/main/test-integ) so they got updated, but not this release branch.
I will remove these, good catch 💯
39d746c to
8c1e907
Compare


Backport #18318 into
release/1.15.xThe original backport PR had failed so I cherry picked the commit from main
0f48b7af5ec5fdf2237ba9e79a63160a071f6a91here.#18619
Description
Testing & Reproduction steps
Links
PR Checklist