open-telemetry / opentelemetry-go-contrib

Collection of extensions for OpenTelemetry-Go.
https://opentelemetry.io/
Apache License 2.0
1.07k stars 505 forks source link

fix(deps): update module go.opentelemetry.io/collector/pdata to v1.10.0 #5779

Closed renovate[bot] closed 1 week ago

renovate[bot] commented 1 week ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
go.opentelemetry.io/collector/pdata v1.8.0 -> v1.10.0 age adoption passing confidence

Release Notes

open-telemetry/opentelemetry-collector (go.opentelemetry.io/collector/pdata) ### [`v1.10.0`](https://togithub.com/open-telemetry/opentelemetry-collector/blob/HEAD/CHANGELOG.md#v1100v01030) ##### πŸ›‘ Breaking changes πŸ›‘ - `exporter/debug`: Disable sampling by default ([#​9921](https://togithub.com/open-telemetry/opentelemetry-collector/issues/9921)) To restore the behavior that was previously the default, set `sampling_thereafter` to `500`. ##### πŸ’‘ Enhancements πŸ’‘ - `cmd/builder`: Allow setting `otelcol.CollectorSettings.ResolverSettings.DefaultScheme` via the builder's `conf_resolver.default_uri_scheme` configuration option ([#​10296](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10296)) - `mdatagen`: add support for optional internal metrics ([#​10316](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10316)) - `otelcol/expandconverter`: Add `confmap.unifyEnvVarExpansion` feature gate to allow enabling Collector/Configuration SIG environment variable expansion rules. ([#​10391](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10391)) When enabled, this feature gate will: - Disable expansion of BASH-style env vars (`$FOO`) - `${FOO}` will be expanded as if it was \`${env:FOO} See https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/rfcs/env-vars.md for more details. - `confmap`: Add `confmap.unifyEnvVarExpansion` feature gate to allow enabling Collector/Configuration SIG environment variable expansion rules. ([#​10259](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10259)) When enabled, this feature gate will: - Disable expansion of BASH-style env vars (`$FOO`) - `${FOO}` will be expanded as if it was \`${env:FOO} See https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/rfcs/env-vars.md for more details. - `confighttp`: Allow the compression list to be overridden ([#​10295](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10295)) Allows Collector administrators to control which compression algorithms to enable for HTTP-based receivers. - `configgrpc`: Revert the zstd compression for gRPC to the third-party library we were using previously. ([#​10394](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10394)) We switched back to our compression logic for zstd when a CVE was found on the third-party library we were using. Now that the third-party library has been fixed, we can revert to that one. For end-users, this has no practical effect. The reproducers for the CVE were tested against this patch, confirming we are not reintroducing the bugs. - `confmap`: Adds alpha `confmap.strictlyTypedInput` feature gate that enables strict type checks during configuration resolution ([#​9532](https://togithub.com/open-telemetry/opentelemetry-collector/issues/9532)) When enabled, the configuration resolution system will: - Stop doing most kinds of implicit type casting when resolving configuration values - Use the original string representation of configuration values if the ${} syntax is used in inline position - `confighttp`: Use `confighttp.ServerConfig` as part of zpagesextension. See \[https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/confighttp/README.md#server-configuration]\(server configuration) options. ([#​9368](https://togithub.com/open-telemetry/opentelemetry-collector/issues/9368)) ##### 🧰 Bug fixes 🧰 - `exporterhelper`: Fix potential deadlock in the batch sender ([#​10315](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10315)) - `expandconverter`: Fix bug where an warning was logged incorrectly. ([#​10392](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10392)) - `exporterhelper`: Fix a bug when the retry and timeout logic was not applied with enabled batching. ([#​10166](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10166)) - `exporterhelper`: Fix a bug where an unstarted batch_sender exporter hangs on shutdown ([#​10306](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10306)) - `exporterhelper`: Fix small batch due to unfavorable goroutine scheduling in batch sender ([#​9952](https://togithub.com/open-telemetry/opentelemetry-collector/issues/9952)) - `confmap`: Fix issue where structs with only yaml tags were not marshaled correctly. ([#​10282](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10282)) ### [`v1.9.0`](https://togithub.com/open-telemetry/opentelemetry-collector/blob/HEAD/CHANGELOG.md#v190v01020) **This release addresses [GHSA-c74f-6mfw-mm4v](https://togithub.com/open-telemetry/opentelemetry-collector/security/advisories/GHSA-c74f-6mfw-mm4v) for `confighttp`.** ##### πŸ›‘ Breaking changes πŸ›‘ - `envprovider`: Restricts Environment Variable names. Environment variable names must now be ASCII only and start with a letter or an underscore, and can only contain underscores, letters, or numbers. ([#​9531](https://togithub.com/open-telemetry/opentelemetry-collector/issues/9531)) - `confighttp`: Apply MaxRequestBodySize to the result of a decompressed body. This addresses [GHSA-c74f-6mfw-mm4v](https://togithub.com/open-telemetry/opentelemetry-collector/security/advisories/GHSA-c74f-6mfw-mm4v) for `confighttp` ([#​10289](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10289)) When using compressed payloads, the Collector would verify only the size of the compressed payload. This change applies the same restriction to the decompressed content. As a security measure, a limit of 20 MiB was added, which makes this a breaking change. For most clients, this shouldn't be a problem, but if you often have payloads that decompress to more than 20 MiB, you might want to either configure your client to send smaller batches (recommended), or increase the limit using the MaxRequestBodySize option. ##### πŸ’‘ Enhancements πŸ’‘ - `mdatagen`: auto-generate utilities to test component telemetry ([#​19783](https://togithub.com/open-telemetry/opentelemetry-collector/issues/19783)) - `mdatagen`: support setting an AttributeSet for async instruments ([#​9674](https://togithub.com/open-telemetry/opentelemetry-collector/issues/9674)) - `mdatagen`: support using telemetry level in telemetry builder ([#​10234](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10234)) This allows components to set the minimum level needed for them to produce telemetry. By default, this is set to configtelemetry.LevelBasic. If the telemetry level is below that minimum level, then the noop meter is used for metrics. - `mdatagen`: add support for bucket boundaries for histograms ([#​10218](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10218)) - `releases`: add documentation in how to verify the image signatures using cosign ([#​9610](https://togithub.com/open-telemetry/opentelemetry-collector/issues/9610)) ##### 🧰 Bug fixes 🧰 - `batchprocessor`: ensure attributes are set on cardinality metadata metric ([#​9674](https://togithub.com/open-telemetry/opentelemetry-collector/issues/9674)) - `batchprocessor`: Fixing processor_batch_metadata_cardinality which was broken in v0.101.0 ([#​10231](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10231)) - `batchprocessor`: respect telemetry level for all metrics ([#​10234](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10234)) - `exporterhelper`: Fix potential deadlocks in BatcherSender shutdown ([#​10255](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10255))

Configuration

πŸ“… Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

β™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

πŸ”• Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.

renovate[bot] commented 1 week ago

β„Ή Artifact update notice

File name: exporters/autoexport/go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

Details:

Package Change
go 1.21 -> 1.22.4
codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 64.4%. Comparing base (f212d53) to head (c564e1a).

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/open-telemetry/opentelemetry-go-contrib/pull/5779/graphs/tree.svg?width=650&height=150&src=pr&token=P6F3W9WA7Q&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry)](https://app.codecov.io/gh/open-telemetry/opentelemetry-go-contrib/pull/5779?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry) ```diff @@ Coverage Diff @@ ## main #5779 +/- ## ===================================== Coverage 64.4% 64.4% ===================================== Files 200 200 Lines 12540 12540 ===================================== + Hits 8082 8084 +2 + Misses 4221 4220 -1 + Partials 237 236 -1 ``` [see 1 file with indirect coverage changes](https://app.codecov.io/gh/open-telemetry/opentelemetry-go-contrib/pull/5779/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry)
MrAlias commented 1 week ago

Requires bump to Go 1.22.

MrAlias commented 1 week ago

Hmm, not sure this should have merged.