Skip to content

processor/tailsampling: stabilize TestDropLargeTraces metric assertions#46283

Merged
atoulme merged 6 commits intoopen-telemetry:mainfrom
rite7sh:fix-tailsampling-flaky-test-clean
Mar 15, 2026
Merged

processor/tailsampling: stabilize TestDropLargeTraces metric assertions#46283
atoulme merged 6 commits intoopen-telemetry:mainfrom
rite7sh:fix-tailsampling-flaky-test-clean

Conversation

@rite7sh
Copy link
Copy Markdown
Contributor

@rite7sh rite7sh commented Feb 23, 2026

Description

Fixes #46154

This PR fixes flakiness in TestDropLargeTraces within the tail sampling processor tests.

The test validates that traces exceeding MaximumTraceSizeBytes are dropped and that the correct metrics are emitted. While the sampling behavior itself is deterministic, metric assertions were intermittently failing in CI environments.


Root Cause

Metrics in the tail sampling processor are recorded asynchronously via the OpenTelemetry Metrics SDK.

The test previously performed metric collection synchronously using:

telem.reader.Collect(...)

In slower CI environments, metric aggregation had not fully completed at collection time, leading to intermittent missing datapoints and assertion failures.

Locally, the test passed consistently due to faster execution timing.

Affected metrics:

  • otelcol_processor_tail_sampling_sampling_trace_dropped_too_early
  • otelcol_processor_tail_sampling_traces_dropped_too_large

Fix

Metric collection and assertions are now wrapped in require.EventuallyWithT to account for asynchronous aggregation.

Key changes

  • Retry metric collection for up to 2 seconds
  • Poll interval of 100ms
  • Assertions execute once datapoints stabilize
  • Ensures deterministic validation across environments

The retry window aligns with async metric stabilization patterns used in existing collector tests.


Scope

  • Test-only change
  • No processor logic modified
  • No sampling behavior changes
  • No production code impact

Testing

Validation performed:

  • Repeated local runs (-count=20)
  • Full module test suite execution
  • No regressions observed

All tests pass consistently after stabilization.


Notes

The fix preserves strict metric validation while making the test resilient to async metric pipeline timing differences between local and CI environments.

@rite7sh rite7sh requested review from a team and jmacd as code owners February 23, 2026 18:11
@github-actions github-actions bot added the first-time contributor PRs made by new contributors label Feb 23, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Welcome, contributor! Thank you for your contribution to opentelemetry-collector-contrib.

Important reminders:

A maintainer will review your pull request soon. Thank you for helping make OpenTelemetry better!

@github-actions github-actions bot added the processor/tailsampling Tail sampling processor label Feb 23, 2026
@paulojmdias
Copy link
Copy Markdown
Member

/workflow-approve

Copy link
Copy Markdown
Contributor

@MovieStoreGuy MovieStoreGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please address all the linting issues :)

@rite7sh rite7sh force-pushed the fix-tailsampling-flaky-test-clean branch from 77a1487 to b236f1d Compare February 25, 2026 11:00
@rite7sh
Copy link
Copy Markdown
Contributor Author

rite7sh commented Feb 25, 2026

@MovieStoreGuy done with the linting issues, please have a look whenever possible :D

@paulojmdias
Copy link
Copy Markdown
Member

/workflow-approve

@atoulme atoulme added Skip Changelog PRs that do not require a CHANGELOG.md entry waiting-for-code-owners labels Feb 26, 2026
@rite7sh
Copy link
Copy Markdown
Contributor Author

rite7sh commented Mar 1, 2026

Looks like the failure is in the elasticsearchreceiver integration test, which appears unrelated to this change (processor/tailsampling), i guess :)

@paulojmdias
Copy link
Copy Markdown
Member

/workflow-approve

@paulojmdias
Copy link
Copy Markdown
Member

@rite7sh please sync your branch with main to have the code which fixes that test

@rite7sh
Copy link
Copy Markdown
Contributor Author

rite7sh commented Mar 9, 2026

hey, @MovieStoreGuy can you take a look at this and see if it's good to be merged whenever you have time to spare? thanks
:)

@rite7sh
Copy link
Copy Markdown
Contributor Author

rite7sh commented Mar 14, 2026

@paulojmdias is this eligible for ready to merge tag if possible?

@paulojmdias paulojmdias added the ready to merge Code review completed; ready to merge by maintainers label Mar 14, 2026
@atoulme atoulme merged commit 52600bc into open-telemetry:main Mar 15, 2026
191 checks passed
@otelbot
Copy link
Copy Markdown
Contributor

otelbot bot commented Mar 15, 2026

Thank you for your contribution @rite7sh! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this survey. If you are getting started contributing, you can also join the CNCF Slack channel #opentelemetry-new-contributors to ask for guidance and get help.

amir-jakoby added a commit to Sawmills/opentelemetry-collector-contrib that referenced this pull request Apr 3, 2026
* [receiver/pprof] support HTTP remote endpoint and self-scraping (#46781)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Implement support for scraping HTTP remote endpoints and self.

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes #38275

* [chore][receiver/pprof] test the file scraper (#46885)

Follow up to #46781 to increase coverage of the file scraper.

* [extension/azure_encoding] promote to Alpha (#46886)

#### Description

Promote the azure_encoding extension from development to alpha.

It has now significant coverage of Azure service logs/metrics/traces
(primarily thanks to @Fiery-Fenix), and comprehensive tests. I believe
it is ready for use in real environments.

#### Link to tracking issue

N/A

#### Testing

Comprehensive unit tests, benchmark tests.

#### Documentation

README

* [exporter/kafka]Remove custom partitioning to rely on exporterhelper configs (#46848)

#### Description

This change removes kafkaexporter's local queue partitioning/merge
behavior and uses exporterhelper batching partitioning only.

This is a **breaking config behavior change** for users who previously
relied on implicit kafka-local partitioner wiring when batching was
enabled. Also, this will fail if the user has batching enabled with
`include_metadata_keys` defined.

#### Link to tracking issue
Fixes #46757

#### Testing
Tests added

#### Documentation
- Updated `exporter/kafkaexporter/README.md` to document the batching
requirement.
- Updated `exporter/kafkaexporter/config.schema.yaml` description for
`include_metadata_keys`.
- Added changelog entry in
`.chloggen/kafka-exporter-batch-partitioner-validation.yaml`.

* [chore] Update core dependencies (#46890)

This PR updates the opentelemetry-collector dependencies to
open-telemetry/opentelemetry-collector@c212d203a1102be94b1d3bd347a30484e0c60f9a.

Changes included in this PR:
https://github.com/open-telemetry/opentelemetry-collector/compare/v0.147.0...c212d203a1102be94b1d3bd347a30484e0c60f9a

---------

Signed-off-by: otelbot <197425009+otelbot@users.noreply.github.com>
Co-authored-by: otelbot <197425009+otelbot@users.noreply.github.com>

* Disable PostgreSQL top_query and query_sample by default (#46844)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Looking at receiver/postgresqlreceiver/metadata.yaml file I noticed that
db.server.query_sample and db.server.top_query are enabled by default.
These flows should not be enabled by default and should be explicitly
enabled by the customer

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes
https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/46843

<!--Describe what testing was performed and which tests were added.-->
#### Testing
Local testing setting up the receiver to velidate that data isnt emitted
until we explicitly enable in the yaml config

<!--Describe the documentation added.-->
#### Documentation
docs updated

* [receiver/awslambda] Move to Alpha stability (#46888)

#### Description

The awslambda receiver is feature complete, and recently grew support
for stream decoding.
We're running the receiver in of our products, and it's working well.
Time to progress beyond alpha.

#### Link to tracking issue

N/A

#### Testing

Unit tests, and testing in production.

#### Documentation

README

* [receiver/aerospikereceiver] enable attribute reaggregation (#46424)

#### Description
Enable dynamic attribute metric with attribute re-aggregation in
configuration at runtime.

#### Link to tracking issue
Fixes #46347

#### Testing
* Running `go generate ./...` and `go test ./...` with all tests passing

#### Documentation
TBD

---------

Signed-off-by: Mohammed ElDegwi <mohammedeldegwi@gmail.com>
Co-authored-by: Andrzej Stencel <andrzej.stencel@elastic.co>

* [exporter/google_cloud_storage] add deprecated_type and introduce new name (#46733)

Following the lower snake case convention, part of #45339

---------

Signed-off-by: alex boten <223565+codeboten@users.noreply.github.com>

* [processor/datadogsemantics] Remove processor (#46893)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Removes deprecated processor `datadogsemantics`.

Follows #46052

---------

Co-authored-by: Yang Song <songy23@users.noreply.github.com>

* Updating procedure count to min ensuring more reliable best effort accuracy (#46870)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
We have tried to implement a new attribute named PROCEDURE_EXECUTIONS on
the Oracle top_query event template. Even though we know that this is a
"best effort" indication of procedure execution count, It misses some
scenarios making best-effort below par

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes
https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/46869

<!--Describe what testing was performed and which tests were added.-->
#### Testing
Validated the new implementation across different procedure scenarios

<!--Describe the documentation added.-->
#### Documentation
changelog

* Add command_type attribute in the top_query template (#46839)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Currently we dont extract command_type. As a result it doesn't allow
flexibility down-stream to filter on which queries on specific scenarios
you may wish to exclude

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes
https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/46838

<!--Describe what testing was performed and which tests were added.-->
#### Testing
updated unit tests and local build connecting to local oracle instance

<!--Describe the documentation added.-->
#### Documentation
Updated

* [chore] Add display names for receivers - batch 10 (#46894)

**Description**

Uses the new
[display_name](https://github.com/open-telemetry/opentelemetry-collector/pull/14115)
and description fields for components.

This is the last receiver batch! 😅 

Related to
https://github.com/open-telemetry/opentelemetry-collector/issues/14114
and https://github.com/open-telemetry/opentelemetry-collector/pull/14400

Continuation from #45537 #45554 #45599 #45647 #45722 #45883 #45950
#46035 #46055 #46216 #46339 #46472 #46539 #46606 #46650 #46743 #46803

* [receiver/haproxy] Add haproxy.server.state resource attribute (#46765)

#### Description
Add a new `haproxy.server.state` resource attribute to the HAProxy
receiver that exposes the server status field from HAProxy's stats CSV
output. This attribute surfaces values like `UP`, `DOWN`, `MAINT`,
`DRAIN`, `NOLB`, and `no check`, enabling users to monitor and alert on
HAProxy server state directly through metrics labels. The attribute is
disabled by default to avoid increasing cardinality for existing users.

#### Testing
Existing unit tests updated to cover the new resource attribute. All
`generated_*_test.go` files, `testdata/config.yaml`, and resource
builder tests include `haproxy.status`. Ran `make generate`, `make
test`, and `make lint` successfully.

#### Documentation
`documentation.md` and `metadata.yaml` updated with the new resource
attribute definition (auto-generated via `mdatagen`).

---------

Co-authored-by: Sean Marciniak <30928402+MovieStoreGuy@users.noreply.github.com>

* [extension/datadog] Set os.type in resource attributes instead of os field (#46896)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Follow up to
https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/46881.
Set `os.type` to `runtime.GOOS` in the datadog extension if not already
present in resource attributes. Remove previous field for `OS`.

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue

<!--Describe what testing was performed and which tests were added.-->
#### Testing
Unit tests

<!--Describe the documentation added.-->
#### Documentation

<!--Please delete paragraphs that you did not use before submitting.-->

* [chore] Update core dependencies (#46901)

This PR updates the opentelemetry-collector dependencies to
open-telemetry/opentelemetry-collector@7cd8f588399bb2bcc18da81c43a6e17df4a6984d.

Changes included in this PR:
https://github.com/open-telemetry/opentelemetry-collector/compare/v0.147.0...7cd8f588399bb2bcc18da81c43a6e17df4a6984d

---------

Signed-off-by: otelbot <197425009+otelbot@users.noreply.github.com>
Co-authored-by: otelbot <197425009+otelbot@users.noreply.github.com>
Co-authored-by: Dmitry Anoshin <anoshindx@gmail.com>

* prometheusreceiver: attempt to fix flaky tests (#46905)

#### Description

Remove the scrape_timeout from the mock prometheus server. This is the
only place in testing where we set a scrape timeout, and seems to be
linked to the tests that are flaky (from what I can tell).

#### Link to tracking issue
Attempt to address
https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/42892

@ArthurSens

* [exporter/bmchelix] Enrich metric names with datapoint attributes (#46771)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
This pull request enhances the BMC Helix exporter to ensure metric names
are uniquely identifiable in BMC Helix Operations Management by
enriching them with datapoint attributes and applying normalization for
compatibility. It also improves label handling, removes legacy
enrichment logic, and updates tests to validate the new enrichment
approach and normalization rules.

**Metric enrichment and normalization:**

* Metric names are now enriched with non-core datapoint attributes,
appended as dot-separated suffixes, and normalized to match BMC Helix
compatibility requirements. This ensures unique identification and
prevents key collisions.
(`exporter/bmchelixexporter/internal/operationsmanagement/metrics_producer.go`,
[[1]](diffhunk://#diff-5c9d35d9692f79277d9122bf02f6425f12f066b0f1304356242b0715bfdacf9fR162-R180)
[[2]](diffhunk://#diff-5c9d35d9692f79277d9122bf02f6425f12f066b0f1304356242b0715bfdacf9fR193-L185)
[[3]](diffhunk://#diff-5c9d35d9692f79277d9122bf02f6425f12f066b0f1304356242b0715bfdacf9fL336-R409)
* Entity label values (`entityTypeId`, `entityName`) and metric names
are normalized to remove invalid characters (e.g., colons) and conform
to required patterns. Label values are also normalized (e.g., commas
replaced with whitespace).
(`exporter/bmchelixexporter/internal/operationsmanagement/metrics_producer.go`,
[[1]](diffhunk://#diff-5c9d35d9692f79277d9122bf02f6425f12f066b0f1304356242b0715bfdacf9fL223-R250)
[[2]](diffhunk://#diff-5c9d35d9692f79277d9122bf02f6425f12f066b0f1304356242b0715bfdacf9fL271-R303)
[[3]](diffhunk://#diff-5c9d35d9692f79277d9122bf02f6425f12f066b0f1304356242b0715bfdacf9fL295-R331)

**Codebase simplification and removal of legacy logic:**

* The legacy `enrichMetricNamesWithAttributes` function is removed,
replaced by the new `createEnrichedMetricWithDpAttributes` approach for
metric enrichment.
(`exporter/bmchelixexporter/internal/operationsmanagement/metrics_producer.go`,
[[1]](diffhunk://#diff-5c9d35d9692f79277d9122bf02f6425f12f066b0f1304356242b0715bfdacf9fR193-L185)
[[2]](diffhunk://#diff-5c9d35d9692f79277d9122bf02f6425f12f066b0f1304356242b0715bfdacf9fL336-R409)

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes #46558

<!--Describe what testing was performed and which tests were added.-->
#### Testing
* Unit tests are updated and expanded to cover the new enrichment logic,
normalization rules, and edge cases (e.g., empty metric names are
skipped, attribute values are normalized, input metrics are not
mutated).
(`exporter/bmchelixexporter/internal/operationsmanagement/metrics_producer_test.go`,
[[1]](diffhunk://#diff-e207bd2633bf323b83e6523cd0ba51f542e8f7008d33a654cd4b06d8d4943418L154-R263)
[[2]](diffhunk://#diff-e207bd2633bf323b83e6523cd0ba51f542e8f7008d33a654cd4b06d8d4943418R442-R525)
* Test data is corrected to move `host.name` to resource attributes,
reflecting real-world usage.
(`exporter/bmchelixexporter/internal/operationsmanagement/metrics_producer_test.go`,
[[1]](diffhunk://#diff-e207bd2633bf323b83e6523cd0ba51f542e8f7008d33a654cd4b06d8d4943418R125)
[[2]](diffhunk://#diff-e207bd2633bf323b83e6523cd0ba51f542e8f7008d33a654cd4b06d8d4943418L135)
[[3]](diffhunk://#diff-e207bd2633bf323b83e6523cd0ba51f542e8f7008d33a654cd4b06d8d4943418L144)
<!--Describe the documentation added.-->
#### Documentation
* A detailed changelog entry is added, describing the enrichment and
normalization changes, their rationale, and compatibility notes for BMC
Helix Operations Management.
(`.chloggen/bmchelix-enrich-metric-names.yaml`,
[.chloggen/bmchelix-enrich-metric-names.yamlR1-R31](diffhunk://#diff-6b6abb47c7fdeb9ad4a91ab8626f4483d1c701721e45bff575a7ff645e0f9bd7R1-R31))
<!--Please delete paragraphs that you did not use before submitting.-->

* [receiver/vcenter] Enable re-aggregation feature (#46421)

Resolves #46384

---------

Signed-off-by: singhvibhanshu <singhvibhanshu@hotmail.com>

* [receiver/filelog] Add setting to annotate file permission mode (#46505)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
In some cases, it can be helpful to record into the attributes the
current permission mode on a file, similar to its owner and group.
The `filelog` receiver will accept a new parameter
`include_file_permissions` (disabled by default) which will include the
file permissions mode in its 3-digit form under `file.log.permissions`.
Like file owner and group, it is not available for Windows.

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes #46504 

<!--Describe what testing was performed and which tests were added.-->
#### Testing
Extended the existing unit tests to validate it.

<!--Describe the documentation added.-->
#### Documentation
Added row in filelogreceiver's documentation following the regular
format.
<!--Please delete paragraphs that you did not use before submitting.-->

---------

Co-authored-by: Andrzej Stencel <andrzej.stencel@elastic.co>
Co-authored-by: Paulo Dias <44772900+paulojmdias@users.noreply.github.com>

* processor/tailsampling: stabilize TestDropLargeTraces metric assertions (#46283)

## Description

Fixes #46154

This PR fixes flakiness in `TestDropLargeTraces` within the tail
sampling processor tests.

The test validates that traces exceeding `MaximumTraceSizeBytes` are
dropped and that the correct metrics are emitted. While the sampling
behavior itself is deterministic, metric assertions were intermittently
failing in CI environments.

---

## Root Cause

Metrics in the tail sampling processor are recorded asynchronously via
the OpenTelemetry Metrics SDK.

The test previously performed metric collection synchronously using:

```go
telem.reader.Collect(...)
```

In slower CI environments, metric aggregation had not fully completed at
collection time, leading to intermittent missing datapoints and
assertion failures.

Locally, the test passed consistently due to faster execution timing.

Affected metrics:

- `otelcol_processor_tail_sampling_sampling_trace_dropped_too_early`
- `otelcol_processor_tail_sampling_traces_dropped_too_large`

---

## Fix

Metric collection and assertions are now wrapped in
`require.EventuallyWithT` to account for asynchronous aggregation.

### Key changes

- Retry metric collection for up to **2 seconds**
- Poll interval of **100ms**
- Assertions execute once datapoints stabilize
- Ensures deterministic validation across environments

The retry window aligns with async metric stabilization patterns used in
existing collector tests.

---

## Scope

- **Test-only change**
- No processor logic modified
- No sampling behavior changes
- No production code impact

---

## Testing

Validation performed:

- Repeated local runs (`-count=20`)
- Full module test suite execution
- No regressions observed

All tests pass consistently after stabilization.

---

## Notes

The fix preserves strict metric validation while making the test
resilient to async metric pipeline timing differences between local and
CI environments.

* [receiver/azure_functions] Introduce new component (#46584)

#### Description

This change includes only overall structure (including factory), readme
and proposed configuration for a new component.
Implementation will follow in future PRs.

Sponsored by @jmacd 

#### Link to tracking issue
Part 1 of
https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/43507

#### Testing

Initial tests were added
#### Documentation

Initial README added.

---------

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
Co-authored-by: Maurizio Branca <maurizio.branca@elastic.co>
Co-authored-by: Andrzej Stencel <andrzej.stencel@elastic.co>

* [receiver/pprof] promote to alpha (#46925)

Fixes #38260

* [exporter/kafkaexporter] Remove deprecated top-level topic and encoding config fields (#46917)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Removes the deprecated top-level topic and encoding configuration fields
and the `Config.Unmarshal` fallback method that existed only to support
them. These fields were deprecated in v0.124.0 in favor of per-signal
fields (`logs::topic`, `metrics::topic`, `traces::topic`,
`profiles::topic`, and corresponding `encoding`).

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes #46916

<!--Describe what testing was performed and which tests were added.-->
#### Testing

Updated tests.

<!--Describe the documentation added.-->
#### Documentation

Updated README.md with this removal.

<!--Please delete paragraphs that you did not use before submitting.-->

---------

Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>

* [connector/otlpjsonconnector] Add unit tests for logs.go (#46118)

## Description

This PR adds unit tests for the previously untested `logs.go` file in
the `otlpjsonconnector` package, which contains the logs connector that
extracts OTLP log payloads from log record bodies.

### Changes

- New file: `connector/otlpjsonconnector/logs_test.go`

### Tests Added

| Test | What it validates |
|------|-------------------|
| `TestNewLogsConnector` | Constructor creates a properly initialized
connector with logger and consumer |
| `TestLogsConnectorCapabilities` | `Capabilities()` returns
`MutatesData: false` |
| `TestLogsConnectorConsumeLogsWithValidLogPayload` | Valid OTLP JSON
log body is unmarshaled and forwarded to the sink (1 log record) |
| `TestLogsConnectorConsumeLogsWithTracePayload` | Trace payloads in log
bodies are correctly skipped |
| `TestLogsConnectorConsumeLogsWithMetricPayload` | Metric payloads in
log bodies are correctly skipped |
| `TestLogsConnectorConsumeLogsWithInvalidPayload` | Random text
payloads are dropped without error |
| `TestLogsConnectorConsumeLogsWithMalformedLogJSON` | Regex-matching
but malformed JSON is handled gracefully |
| `TestLogsConnectorConsumeLogsWithEmptyLogs` | Empty `plog.Logs` input
is handled without error |

### Motivation

The logs connector performs critical payload dispatch — it examines each
log record body, regex-matches it against OTLP JSON patterns, and routes
log payloads to downstream consumers while skipping traces and metrics.
This logic had no dedicated unit tests. The existing `connector_test.go`
covers higher-level golden-file based scenarios but does not isolate the
`ConsumeLogs` method or test edge cases like malformed JSON.

### Testing

```bash
cd connector/otlpjsonconnector && go test -run "TestNewLogsConnector|TestLogsConnector" -v .
```

All 8 tests pass.

---------

Signed-off-by: Daksh Pathak <daksh.pathak.ug24@nsut.ac.in>

* [ci] fix generate pr from changelog script (#46934)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Fix by fetching `refs/pull/<number>/head` to make the PR commits
available in the object store, and using git show to read file contents
instead of reading from disk.

Tested locally, and it works fine.

See:
-
https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/46250#issuecomment-4046878762
-
https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/22983844667/job/66729374035

Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>

* [chore][processor/resourcedetection] Fix DigitalOcean config comment typo (#46920)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Minor typo in config.go comment referring to the wrong detector.

---------

Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>

* [processor/resourcedetectionprocessor] Fix goroutine leak and panic when provider is shared across signal types (#46919)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Fixes a panic on shutdown when the same `resourcedetectionprocessor`
with `refresh_interval` is used in multiple pipelines. The shared
provider's start/stop methods weren't guarded against repeated calls.

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes #46918

<!--Describe what testing was performed and which tests were added.-->
#### Testing

Added unit tests that reproduce the issue if we run them without the
fix.

---------

Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>

* [internal/metadataproviders] Fix response body leak and add status check in OpenShift provider (#46922)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

The three HTTP methods in the OpenShift metadata provider
(`OpenShiftClusterVersion`, `Infrastructure`, `K8SClusterVersion`) never
close the response body after making requests. This can leak connections
and file descriptors over time, especially when periodic refresh is
enabled. Eventually, the collector runs out of file descriptors and
cannot make new HTTP calls.

This change adds `defer resp.Body.Close()` to all three methods and also
validates the HTTP status code before trying to decode the response.
Previously, a 403 or 500 from the API would produce a confusing JSON
decode error instead of a clear message about the actual status code.

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes #46921

<!--Describe what testing was performed and which tests were added.-->
#### Testing

Added unit tests for non-200 status responses.

Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>

* Fix port collision flakes in correctness tests (#46909)

#### Description

I hit a testbed flake in
https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/46905:

Run
https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/23081256798/job/67050924673?pr=46905

This prevents the port defined in

```
service:
   telemetry:
     metrics:
       readers:
         - pull:
             exporter:
               prometheus:
```

Or ports already defined by the testbed sender from colliding with ports
chosen by receivers or exporters.

#### Link to tracking issue

Not sure if there is an open issue or not.  I just saw it on my PR.

* [chore][receiver/oracledbreceiver] Add go-ora documentation link in README (#46903)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Add go-ora documentation link in oracledbreceiver README file

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes

<!--Describe what testing was performed and which tests were added.-->
#### Testing
Validated go-ora link https://github.com/sijms/go-ora is accessible

* [chore] Update core dependencies (#46942)

This PR updates the opentelemetry-collector dependencies to
open-telemetry/opentelemetry-collector@7cd8f588399bb2bcc18da81c43a6e17df4a6984d.

Changes included in this PR:
https://github.com/open-telemetry/opentelemetry-collector/compare/v0.147.0...7cd8f588399bb2bcc18da81c43a6e17df4a6984d

Signed-off-by: otelbot <197425009+otelbot@users.noreply.github.com>
Co-authored-by: otelbot <197425009+otelbot@users.noreply.github.com>

* Migrate to new bare metal runner (Ubuntu 24) (#46940)

Old runner:

- name: `oracle-bare-metal-64cpu-512gb-x86-64`
- 512gb memory
- Oracle Linux 8

New runner:

-  name: `oracle-bare-metal-64cpu-1024gb-x86-64-ubuntu-24`
- 1024gb memory
-  Ubuntu 24

I realize this could have some impact on benchmark baselines, so please
post on https://github.com/open-telemetry/community/issues/3333 once you
have migrated and are comfortable with the old one being removed.

* [receiver/cisco_os] use snake case name for receiver type (#46948)

also add the receiver to the contrib distribution, reflecting
https://github.com/open-telemetry/opentelemetry-collector-releases/pull/1418

* [receiver/github] Enable reaggregation feature (#46452)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Enable dynamic metric attribute reaggregation for the github receiver

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes #46385 
Part of #45396

* receiver/kafka: topic/partition/offset metadata (#46914)

#### Description

Enhance the Kafka receiver to inject the Kafka topic, partition, and
offset as client metadata.
These can then be accessed, for example, by the transform processor to
copy into attributes.

#### Link to tracking issue

Fixes #45931

#### Testing

Tests added.

#### Documentation

Updated README

* fix(datadogreceiver): preserve original per-span attribute (#46850)

#### Description

This is to fix an issue with spans like db / sql ones not showing the
override name (i.e. testdb) that would display when doing through the DD
agent directly prior to routing through a shared OTEL collector like
Alloy

Why this works end-to-end:

1. `span.Meta` entries become span attributes in the OTEL conversion
(`newSpan.Attributes().PutStr(k, v)`)
2. `span.Service` (after override) becomes the resource-level
`service.name` via `groupByService` which satisfies OTEL's resource
model
3. The DD exporter's OTelSpanAccessor checks span attributes before
resource attributes, so `span.Meta["service.name"]` (the original
per-span service) takes precedence over the resource-level base service

No config flags needed, no language-specific heuristics, no
groupbyattrs. The original service name roundtrips cleanly through
DD→OTEL→DD. Works for all tracers and all languages.

Currently, we get around this with something like this in the Alloy
config. The Alloy datadog exporter just natively uses primitives here
and that's what led me to this change.
```
	trace_statements {
		context    = "span"
		statements = [
			`set(attributes["server.address"], attributes["http.server_name"]) where attributes["http.server_name"] != nil and attributes["server.address"] == nil`,
			`set(attributes["peer.service"], Concat([attributes["django.db.alias"], "db"], "")) where attributes["django.db.alias"] != nil`,
			`set(attributes["base_service"], attributes["service.name"]) where attributes["django.db.alias"] != nil`,
			`set(attributes["_dd.base_service"], attributes["service.name"]) where attributes["django.db.alias"] != nil`,
			`set(attributes["service.name"], attributes["peer.service"]) where attributes["django.db.alias"] != nil`,
		]
	}

	trace_statements {
		context    = "span"
		statements = [
			// Outbound calls (DB, cache, HTTP client) have server.address set by DD trace libs
			`set(span.kind, SPAN_KIND_CLIENT) where instrumentation_scope.name == "datadog" and span.kind == SPAN_KIND_UNSPECIFIED and attributes["server.address"] != nil`,
			// Inbound request handlers have http.route set by DD trace libs
			`set(span.kind, SPAN_KIND_SERVER) where instrumentation_scope.name == "datadog" and span.kind == SPAN_KIND_UNSPECIFIED and attributes["http.route"] != nil`,
		]
	}
```

#### Link to tracking issue

Related to -
https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/1909

* [receiver/flinkmetrics]: enable re-aggregation feature (#46707)

## Description
This PR enables re-aggregation for the `flinkmetrics` receiver by
setting `reaggregation_enabled: true` and classifying all attributes
with appropriate `requirement_level` values.

Attributes are classified as `required` where aggregation would produce
meaningless results — `checkpoint` (completed vs failed are distinct
states), `garbage_collector_name` (distinct GC implementations), and
`record` (in/out/dropped are fundamentally different). `operator_name`
is classified as `recommended` as aggregating across operators can still
produce operationally meaningful totals.

## Link to tracking issue
Fixes #46356
Part of #45396

## Testing
Unit tests are passing

* [pkg/stanza] Add support for `if` option in `recombine` operator (#46074)

#### Description

The recombine operator inherits the `if` field from `TransformerConfig`,
but its `Process()` and `ProcessBatch()` methods never evaluate it. This
means the `if` field is silently accepted but has no effect, leading
users to believe they are conditionally applying recombine when it
actually applies to all logs unconditionally.

This adds a warning during `Build()` when the `if` field is configured
on a recombine operator, informing the user that it is not supported and
suggesting a `router` operator as an alternative.

#### Link to tracking issue
Fixes #46048

#### Testing

Added `TestBuildWarnsOnIfExpr` which verifies that building a recombine
config with `if` set emits exactly one warning with the expected
message. All existing tests continue to pass.

#### Documentation

No documentation changes needed. The warning message itself guides users
toward the correct approach (using a `router` operator).

---------

Co-authored-by: Andrzej Stencel <andrzej.stencel@elastic.co>

* [receiver/mysql] Set the default collection of query_sample to false (#46929)

Resolves #46902

---------

Signed-off-by: singhvibhanshu <singhvibhanshu@hotmail.com>

* [chore] Update core dependencies (#46952)

This PR updates the opentelemetry-collector dependencies to
open-telemetry/opentelemetry-collector@665ab5d0143de3ff9e525aefe6e8057933097083.

Changes included in this PR:
https://github.com/open-telemetry/opentelemetry-collector/compare/v0.147.0...665ab5d0143de3ff9e525aefe6e8057933097083

---------

Signed-off-by: otelbot <197425009+otelbot@users.noreply.github.com>
Co-authored-by: otelbot <197425009+otelbot@users.noreply.github.com>

* [receiver/windowseventlogreceiver] Use a map for event_data (#46034)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Changes the `event_data` format from an array of single-key maps (which
is extremely difficult to work with in OTTL) to a flat map , making
fields directly accessible via OTTL.

**Before:**
```json
{
  "event_data": {
    "data": [
      {"ProcessId": "7924"},
      {"Application": "app.exe"},
      {"": "anonymous_value"}
    ]
  }
}
```

**After:**
```json
{
  "event_data": {
    "ProcessId": "7924",
    "Application": "app.exe",
    "Data1": "anonymous_value"
  }
}
```

- Named `<Data>` elements become direct keys
- Anonymous `<Data>` elements get numbered keys (`Data1`, `Data2`, etc.)
- Fields now directly accessible: `body["event_data"]["ProcessId"]`

For Windows logs, any given log has either named elements or anonymous
elements, which avoids typical key conflicts.

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes #42565 and #32952

<!--Describe what testing was performed and which tests were added.-->
#### Testing

Unit tests updated. To test manually on Windows:

1. Build collector with changes
2. Configure receiver with `raw: false` (default)
3. Generate Windows events and verify `event_data` fields are flat keys

**Note:** Only applies when `raw=false`. When `raw=true`, body is XML
string.

#### Documentation

Updated readme and added changelog

* fix(deps): update module google.golang.org/api to v0.272.0 (#46949)

This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
|
[google.golang.org/api](https://redirect.github.com/googleapis/google-api-go-client)
| `v0.257.0` → `v0.272.0` |
![age](https://developer.mend.io/api/mc/badges/age/go/google.golang.org%2fapi/v0.272.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/go/google.golang.org%2fapi/v0.257.0/v0.272.0?slim=true)
|
|
[google.golang.org/api](https://redirect.github.com/googleapis/google-api-go-client)
| `v0.267.0` → `v0.272.0` |
![age](https://developer.mend.io/api/mc/badges/age/go/google.golang.org%2fapi/v0.272.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/go/google.golang.org%2fapi/v0.267.0/v0.272.0?slim=true)
|
|
[google.golang.org/api](https://redirect.github.com/googleapis/google-api-go-client)
| `v0.265.0` → `v0.272.0` |
![age](https://developer.mend.io/api/mc/badges/age/go/google.golang.org%2fapi/v0.272.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/go/google.golang.org%2fapi/v0.265.0/v0.272.0?slim=true)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the [Dependency
Dashboard](../issues/20907) for more information.

---

### Release Notes

<details>
<summary>googleapis/google-api-go-client
(google.golang.org/api)</summary>

###
[`v0.272.0`](https://redirect.github.com/googleapis/google-api-go-client/releases/tag/v0.272.0)

[Compare
Source](https://redirect.github.com/googleapis/google-api-go-client/compare/v0.271.0...v0.272.0)

##### Features

- **all:** Auto-regenerate discovery clients
([#&#8203;3534](https://redirect.github.com/googleapis/google-api-go-client/issues/3534))
([b4d37a1](https://redirect.github.com/googleapis/google-api-go-client/commit/b4d37a1279665d52b8b4672a6a91732ae8eb3cf6))
- **all:** Auto-regenerate discovery clients
([#&#8203;3536](https://redirect.github.com/googleapis/google-api-go-client/issues/3536))
([549ef3e](https://redirect.github.com/googleapis/google-api-go-client/commit/549ef3e69575edbe4fee27bc485a093dc88b90b3))
- **all:** Auto-regenerate discovery clients
([#&#8203;3537](https://redirect.github.com/googleapis/google-api-go-client/issues/3537))
([6def284](https://redirect.github.com/googleapis/google-api-go-client/commit/6def284013185ab4ac2fa389594ee6013086d5d0))
- **all:** Auto-regenerate discovery clients
([#&#8203;3538](https://redirect.github.com/googleapis/google-api-go-client/issues/3538))
([319b5ab](https://redirect.github.com/googleapis/google-api-go-client/commit/319b5abcbc42b77f6acc861e45365b65695e8096))
- **all:** Auto-regenerate discovery clients
([#&#8203;3539](https://redirect.github.com/googleapis/google-api-go-client/issues/3539))
([73bcfcf](https://redirect.github.com/googleapis/google-api-go-client/commit/73bcfcf9b2fd8def3aec1cdff10e6d4ee646af41))
- **all:** Auto-regenerate discovery clients
([#&#8203;3541](https://redirect.github.com/googleapis/google-api-go-client/issues/3541))
([6374c49](https://redirect.github.com/googleapis/google-api-go-client/commit/6374c496fde577aa9f5b32470e45676ff4f69dde))

###
[`v0.271.0`](https://redirect.github.com/googleapis/google-api-go-client/releases/tag/v0.271.0)

[Compare
Source](https://redirect.github.com/googleapis/google-api-go-client/compare/v0.270.0...v0.271.0)

##### Features

- **all:** Auto-regenerate discovery clients
([#&#8203;3532](https://redirect.github.com/googleapis/google-api-go-client/issues/3532))
([ccff5b3](https://redirect.github.com/googleapis/google-api-go-client/commit/ccff5b35c0d730214473de122dcb96b110be0029))

###
[`v0.270.0`](https://redirect.github.com/googleapis/google-api-go-client/releases/tag/v0.270.0)

[Compare
Source](https://redirect.github.com/googleapis/google-api-go-client/compare/v0.269.0...v0.270.0)

##### Features

- **all:** Auto-regenerate discovery clients
([#&#8203;3515](https://redirect.github.com/googleapis/google-api-go-client/issues/3515))
([44db8ef](https://redirect.github.com/googleapis/google-api-go-client/commit/44db8ef7d07171dad68a5cc9026ab3f1cd77ef12))
- **all:** Auto-regenerate discovery clients
([#&#8203;3518](https://redirect.github.com/googleapis/google-api-go-client/issues/3518))
([b3dc663](https://redirect.github.com/googleapis/google-api-go-client/commit/b3dc663d78cba7be5dbd998a439edcdf4991b807))
- **all:** Auto-regenerate discovery clients
([#&#8203;3519](https://redirect.github.com/googleapis/google-api-go-client/issues/3519))
([01c06b9](https://redirect.github.com/googleapis/google-api-go-client/commit/01c06b9034963e27855bf188049d1752fc2de525))
- **all:** Auto-regenerate discovery clients
([#&#8203;3520](https://redirect.github.com/googleapis/google-api-go-client/issues/3520))
([7ed0454](https://redirect.github.com/googleapis/google-api-go-client/commit/7ed04540e547ca9cef1f9f48d54c1277f24773bf))
- **all:** Auto-regenerate discovery clients
([#&#8203;3521](https://redirect.github.com/googleapis/google-api-go-client/issues/3521))
([d11f54e](https://redirect.github.com/googleapis/google-api-go-client/commit/d11f54e813163dfc52515d214065c67bc944c7ef))
- **all:** Auto-regenerate discovery clients
([#&#8203;3523](https://redirect.github.com/googleapis/google-api-go-client/issues/3523))
([ce39b40](https://redirect.github.com/googleapis/google-api-go-client/commit/ce39b40dedcd239ea2fb4a18aedf23ba61b8ae90))
- **all:** Auto-regenerate discovery clients
([#&#8203;3525](https://redirect.github.com/googleapis/google-api-go-client/issues/3525))
([15b140d](https://redirect.github.com/googleapis/google-api-go-client/commit/15b140d66a7b67dd6bfea7d1473bd2df4d878f95))
- **all:** Auto-regenerate discovery clients
([#&#8203;3526](https://redirect.github.com/googleapis/google-api-go-client/issues/3526))
([1b18158](https://redirect.github.com/googleapis/google-api-go-client/commit/1b18158bb7807b1a5a9f73dd4ec450f274a81da8))
- **all:** Auto-regenerate discovery clients
([#&#8203;3527](https://redirect.github.com/googleapis/google-api-go-client/issues/3527))
([a932a45](https://redirect.github.com/googleapis/google-api-go-client/commit/a932a454c4fd97dfc66f0cca97afeae231a7e4e9))
- **all:** Auto-regenerate discovery clients
([#&#8203;3528](https://redirect.github.com/googleapis/google-api-go-client/issues/3528))
([f6ede69](https://redirect.github.com/googleapis/google-api-go-client/commit/f6ede69e7094cf4f7353841d593867f087f06b84))
- **all:** Auto-regenerate discovery clients
([#&#8203;3529](https://redirect.github.com/googleapis/google-api-go-client/issues/3529))
([b73e4fb](https://redirect.github.com/googleapis/google-api-go-client/commit/b73e4fbc0017249279922cb4c223e44f98cc5db9))
- **option/internaloption:** Add more option introspection
([#&#8203;3524](https://redirect.github.com/googleapis/google-api-go-client/issues/3524))
([ac5da8f](https://redirect.github.com/googleapis/google-api-go-client/commit/ac5da8f06619417a42c5e128dcb5aafcb1912353))
- **option/internaloption:** Unsafe option resolver
([#&#8203;3514](https://redirect.github.com/googleapis/google-api-go-client/issues/3514))
([b263cee](https://redirect.github.com/googleapis/google-api-go-client/commit/b263ceeb1a4062ae6cda17c49073d5051d96fc90))

###
[`v0.269.0`](https://redirect.github.com/googleapis/google-api-go-client/releases/tag/v0.269.0)

[Compare
Source](https://redirect.github.com/googleapis/google-api-go-client/compare/v0.268.0...v0.269.0)

##### Features

- **all:** Auto-regenerate discovery clients
([#&#8203;3512](https://redirect.github.com/googleapis/google-api-go-client/issues/3512))
([7565f1c](https://redirect.github.com/googleapis/google-api-go-client/commit/7565f1ce32823b000e15c99cee73abe69b956a80))

##### Bug Fixes

- **generator:** Handle preview version pkg name
([#&#8203;3511](https://redirect.github.com/googleapis/google-api-go-client/issues/3511))
([2a249ce](https://redirect.github.com/googleapis/google-api-go-client/commit/2a249ce376787bdfb5b9a71198e7e2458d471b54))

###
[`v0.268.0`](https://redirect.github.com/googleapis/google-api-go-client/releases/tag/v0.268.0)

[Compare
Source](https://redirect.github.com/googleapis/google-api-go-client/compare/v0.267.0...v0.268.0)

##### Features

- **all:** Auto-regenerate discovery clients
([#&#8203;3502](https://redirect.github.com/googleapis/google-api-go-client/issues/3502))
([5ccf9b9](https://redirect.github.com/googleapis/google-api-go-client/commit/5ccf9b931da20908e6fcfacacc2a5b187e3c2d18))
- **all:** Auto-regenerate discovery clients
([#&#8203;3505](https://redirect.github.com/googleapis/google-api-go-client/issues/3505))
([f405df9](https://redirect.github.com/googleapis/google-api-go-client/commit/f405df9cfcfd63da04a8041398a1ac7e05b19be0))
- **all:** Auto-regenerate discovery clients
([#&#8203;3506](https://redirect.github.com/googleapis/google-api-go-client/issues/3506))
([cda923a](https://redirect.github.com/googleapis/google-api-go-client/commit/cda923ae8e234c4b83585867e67163dfbf7228af))
- **all:** Auto-regenerate discovery clients
([#&#8203;3507](https://redirect.github.com/googleapis/google-api-go-client/issues/3507))
([e9015cc](https://redirect.github.com/googleapis/google-api-go-client/commit/e9015cc2681ce9d6300f4fae2ae6b075c6d75ead))
- **all:** Auto-regenerate discovery clients
([#&#8203;3508](https://redirect.github.com/googleapis/google-api-go-client/issues/3508))
([20fbcc1](https://redirect.github.com/googleapis/google-api-go-client/commit/20fbcc132145cd4a09a58494dcb0b11974d5a681))
- **all:** Auto-regenerate discovery clients
([#&#8203;3509](https://redirect.github.com/googleapis/google-api-go-client/issues/3509))
([20c1e0f](https://redirect.github.com/googleapis/google-api-go-client/commit/20c1e0f7c75bfe94e9eb5a12a13003dcafa93342))
- Update to go 1.26
([#&#8203;3504](https://redirect.github.com/googleapis/google-api-go-client/issues/3504))
([cc5baec](https://redirect.github.com/googleapis/google-api-go-client/commit/cc5baec2a450cf4d15a4aa1e71f5cefea339f2ea))

###
[`v0.267.0`](https://redirect.github.com/googleapis/google-api-go-client/releases/tag/v0.267.0)

[Compare
Source](https://redirect.github.com/googleapis/google-api-go-client/compare/v0.266.0...v0.267.0)

##### Features

- **all:** Auto-regenerate discovery clients
([#&#8203;3492](https://redirect.github.com/googleapis/google-api-go-client/issues/3492))
([62e5a8e](https://redirect.github.com/googleapis/google-api-go-client/commit/62e5a8eeb37dc6d8b31b104bdb6f100369d69ff2))
- **all:** Auto-regenerate discovery clients
([#&#8203;3494](https://redirect.github.com/googleapis/google-api-go-client/issues/3494))
([832516f](https://redirect.github.com/googleapis/google-api-go-client/commit/832516f0e0c6fe7da7b12c74cdc4ee4309349421))
- **all:** Auto-regenerate discovery clients
([#&#8203;3495](https://redirect.github.com/googleapis/google-api-go-client/issues/3495))
([1415f4c](https://redirect.github.com/googleapis/google-api-go-client/commit/1415f4caacd5d60250c33694bb7722b6794c7958))
- **all:** Auto-regenerate discovery clients
([#&#8203;3496](https://redirect.github.com/googleapis/google-api-go-client/issues/3496))
([633a3a2](https://redirect.github.com/googleapis/google-api-go-client/commit/633a3a27b83ac163a7ca7adcc2fb548af9622c38))
- **all:** Auto-regenerate discovery clients
([#&#8203;3497](https://redirect.github.com/googleapis/google-api-go-client/issues/3497))
([6463f72](https://redirect.github.com/googleapis/google-api-go-client/commit/6463f72e8521ee717534a28d6b8d764d2ce2661e))
- **all:** Auto-regenerate discovery clients
([#&#8203;3499](https://redirect.github.com/googleapis/google-api-go-client/issues/3499))
([ab20d56](https://redirect.github.com/googleapis/google-api-go-client/commit/ab20d567003131669d657195cc28783c35186cef))
- **all:** Auto-regenerate discovery clients
([#&#8203;3500](https://redirect.github.com/googleapis/google-api-go-client/issues/3500))
([8a6df06](https://redirect.github.com/googleapis/google-api-go-client/commit/8a6df0640a2f7c9f1452848ad0d3d251a92402ba))

###
[`v0.266.0`](https://redirect.github.com/googleapis/google-api-go-client/releases/tag/v0.266.0)

[Compare
Source](https://redirect.github.com/googleapis/google-api-go-client/compare/v0.265.0...v0.266.0)

##### Features

- **all:** Auto-regenerate discovery clients
([#&#8203;3483](https://redirect.github.com/googleapis/google-api-go-client/issues/3483))
([a3a61ce](https://redirect.github.com/googleapis/google-api-go-client/commit/a3a61ce2214c8d18bb640c724fae2cda8cb77b58))
- **all:** Auto-regenerate discovery clients
([#&#8203;3485](https://redirect.github.com/googleapis/google-api-go-client/issues/3485))
([200d140](https://redirect.github.com/googleapis/google-api-go-client/commit/200d1409ecc830131f0b5b92fd59708fef24dd8e))
- **all:** Auto-regenerate discovery clients
([#&#8203;3486](https://redirect.github.com/googleapis/google-api-go-client/issues/3486))
([870909e](https://redirect.github.com/googleapis/google-api-go-client/commit/870909e466b1bf8172dfe9bd5c096b1df45b0491))
- **all:** Auto-regenerate discovery clients
([#&#8203;3487](https://redirect.github.com/googleapis/google-api-go-client/issues/3487))
([6018e80](https://redirect.github.com/googleapis/google-api-go-client/commit/6018e80ff5cadadb81c7b7be9f5de01b4b4c2132))
- **all:** Auto-regenerate discovery clients
([#&#8203;3489](https://redirect.github.com/googleapis/google-api-go-client/issues/3489))
([402353b](https://redirect.github.com/googleapis/google-api-go-client/commit/402353be95579bccda6b6623e67e9f028163905b))
- **all:** Auto-regenerate discovery clients
([#&#8203;3490](https://redirect.github.com/googleapis/google-api-go-client/issues/3490))
([49c652f](https://redirect.github.com/googleapis/google-api-go-client/commit/49c652fb9c5e08c9d1a2587f41017b6011dc03da))

###
[`v0.265.0`](https://redirect.github.com/googleapis/google-api-go-client/releases/tag/v0.265.0)

[Compare
Source](https://redirect.github.com/googleapis/google-api-go-client/compare/v0.264.0...v0.265.0)

##### Features

- Add checksums for single chunk json uploads
([#&#8203;3448](https://redirect.github.com/googleapis/google-api-go-client/issues/3448))
([0f1cb7b](https://redirect.github.com/googleapis/google-api-go-client/commit/0f1cb7b9b71b8f21e2bb14d69bd1e11a1ca7a9ff))
- **all:** Auto-regenerate discovery clients
([#&#8203;3473](https://redirect.github.com/googleapis/google-api-go-client/issues/3473))
([e617dd5](https://redirect.github.com/googleapis/google-api-go-client/commit/e617dd5dc920921e5fff184be3c33a8ab9c8ce41))
- **all:** Auto-regenerate discovery clients
([#&#8203;3476](https://redirect.github.com/googleapis/google-api-go-client/issues/3476))
([986f556](https://redirect.github.com/googleapis/google-api-go-client/commit/986f55600724d148e102413766cfbdc278adba38))
- **all:** Auto-regenerate discovery clients
([#&#8203;3477](https://redirect.github.com/googleapis/google-api-go-client/issues/3477))
([cdb1738](https://redirect.github.com/googleapis/google-api-go-client/commit/cdb1738722afcceb26e6d4be934bac46682c1c25))
- **all:** Auto-regenerate discovery clients
([#&#8203;3479](https://redirect.github.com/googleapis/google-api-go-client/issues/3479))
([2aa3478](https://redirect.github.com/googleapis/google-api-go-client/commit/2aa3478d4e2a94b30eb6873ff5b41cffef0e89bd))
- **all:** Auto-regenerate discovery clients
([#&#8203;3480](https://redirect.github.com/googleapis/google-api-go-client/issues/3480))
([29bd843](https://redirect.github.com/googleapis/google-api-go-client/commit/29bd84381608db3db0385bd8f4544af458df7329))
- **all:** Auto-regenerate discovery clients
([#&#8203;3482](https://redirect.github.com/googleapis/google-api-go-client/issues/3482))
([afa65b7](https://redirect.github.com/googleapis/google-api-go-client/commit/afa65b7fb9b586aac07247474fdd1efc5812e824))

###
[`v0.264.0`](https://redirect.github.com/googleapis/google-api-go-client/releases/tag/v0.264.0)

[Compare
Source](https://redirect.github.com/googleapis/google-api-go-client/compare/v0.263.0...v0.264.0)

##### Features

- **all:** Auto-regenerate discovery clients
([#&#8203;3464](https://redirect.github.com/googleapis/google-api-go-client/issues/3464))
([5c164fc](https://redirect.github.com/googleapis/google-api-go-client/commit/5c164fc8830de4495d72b7c43be930396df83d3f))
- **all:** Auto-regenerate discovery clients
([#&#8203;3472](https://redirect.github.com/googleapis/google-api-go-client/issues/3472))
([52bd769](https://redirect.github.com/googleapis/google-api-go-client/commit/52bd769533cbf7f9c3377993a29647dc0cc4228d))

###
[`v0.263.0`](https://redirect.github.com/googleapis/google-api-go-client/releases/tag/v0.263.0)

[Compare
Source](https://redirect.github.com/googleapis/google-api-go-client/compare/v0.262.0...v0.263.0)

##### Features

- **all:** Auto-regenerate discovery clients
([#&#8203;3457](https://redirect.github.com/googleapis/google-api-go-client/issues/3457))
([0199a8c](https://redirect.github.com/googleapis/google-api-go-client/commit/0199a8c75bde11931d7fb1593cbb4801cf4250b6))
- **all:** Auto-regenerate discovery clients
([#&#8203;3459](https://redirect.github.com/googleapis/google-api-go-client/issues/3459))
([80afb8a](https://redirect.github.com/googleapis/google-api-go-client/commit/80afb8aabeb4a9e1c12c057917ccbb3e9a0700d0))
- **all:** Auto-regenerate discovery clients
([#&#8203;3460](https://redirect.github.com/googleapis/google-api-go-client/issues/3460))
([1315da9](https://redirect.github.com/googleapis/google-api-go-client/commit/1315da9e0b70c5c2245e209275e3dc6ef9f38b0e))
- **all:** Auto-regenerate discovery clients
([#&#8203;3462](https://redirect.github.com/googleapis/google-api-go-client/issues/3462))
([052317a](https://redirect.github.com/googleapis/google-api-go-client/commit/052317a0b1c4e4d57317589dddf7068124beff4c))
- **all:** Auto-regenerate discovery clients
([#&#8203;3463](https://redirect.github.com/googleapis/google-api-go-client/issues/3463))
([35423ac](https://redirect.github.com/googleapis/google-api-go-client/commit/35423ac5def99b9789b1c990ca7d98ef641e1932))

###
[`v0.262.0`](https://redirect.github.com/googleapis/google-api-go-client/releases/tag/v0.262.0)

[Compare
Source](https://redirect.github.com/googleapis/google-api-go-client/compare/v0.261.0...v0.262.0)

##### Features

- **all:** Auto-regenerate discovery clients
([#&#8203;3446](https://redirect.github.com/googleapis/google-api-go-client/issues/3446))
([e7cf469](https://redirect.github.com/googleapis/google-api-go-client/commit/e7cf4692f3966b1a05b15d278e3ded70c230dc31))
- **all:** Auto-regenerate discovery clients
([#&#8203;3450](https://redirect.github.com/googleapis/google-api-go-client/issues/3450))
([b32ced9](https://redirect.github.com/googleapis/google-api-go-client/commit/b32ced9c87cd59e284bcfa65b0d9205b57e54a16))

##### Bug Fixes

- **internaloption:** Add WithTelemetryAttributes
([#&#8203;3442](https://redirect.github.com/googleapis/google-api-go-client/issues/3442))
([2a5c807](https://redirect.github.com/googleapis/google-api-go-client/commit/2a5c807a86d2712d685e06f59cd5d25740b46c71))

###
[`v0.261.0`](https://redirect.github.com/googleapis/google-api-go-client/releases/tag/v0.261.0)

[Compare
Source](https://redirect.github.com/googleapis/google-api-go-client/compare/v0.260.0...v0.261.0)

##### Features

- **all:** Auto-regenerate discovery clients
([#&#8203;3439](https://redirect.github.com/googleapis/google-api-go-client/issues/3439))
([70a0e37](https://redirect.github.com/googleapis/google-api-go-client/commit/70a0e3729f51515adf5b66a62fca8537d5e7dacd))
- **all:** Auto-regenerate discovery clients
([#&#8203;3441](https://redirect.github.com/googleapis/google-api-go-client/issues/3441))
([c32590d](https://redirect.github.com/googleapis/google-api-go-client/commit/c32590dc1edb84fce5a20cb1083d0c457cb02354))
- **all:** Auto-regenerate discovery clients
([#&#8203;3443](https://redirect.github.com/googleapis/google-api-go-client/issues/3443))
([1c9ed9b](https://redirect.github.com/googleapis/google-api-go-client/commit/1c9ed9b363d7ab878f924abe90e3b88f2d08993f))
- **all:** Auto-regenerate discovery clients
([#&#8203;3444](https://redirect.github.com/googleapis/google-api-go-client/issues/3444))
([9b31e6d](https://redirect.github.com/googleapis/google-api-go-client/commit/9b31e6d02bbd63a8e516c0ab90122bba39bacec9))

###
[`v0.260.0`](https://redirect.github.com/googleapis/google-api-go-client/releases/tag/v0.260.0)

[Compare
Source](https://redirect.github.com/googleapis/google-api-go-client/compare/v0.259.0...v0.260.0)

##### Features

- **all:** Auto-regenerate discovery clients
([#&#8203;3428](https://redirect.github.com/googleapis/google-api-go-client/issues/3428))
([0afb986](https://redirect.github.com/googleapis/google-api-go-client/commit/0afb986761463235d97270ab501a134b4b8f30ab))
- **all:** Auto-regenerate discovery clients
([#&#8203;3430](https://redirect.github.com/googleapis/google-api-go-client/issues/3430))
([6fe40c6](https://redirect.github.com/googleapis/google-api-go-client/commit/6fe40c61fa1b8990057b5e668e54ba8657a57ea1))
- **all:** Auto-regenerate discovery clients
([#&#8203;3431](https://redirect.github.com/googleapis/google-api-go-client/issues/3431))
([02e27cf](https://redirect.github.com/googleapis/google-api-go-client/commit/02e27cf37dfd4ac6b5177aea1e7e1e6c9489e19e))
- **all:** Auto-regenerate discovery clients
([#&#8203;3432](https://redirect.github.com/googleapis/google-api-go-client/issues/3432))
([b147c8b](https://redirect.github.com/googleapis/google-api-go-client/commit/b147c8bae5b8087c272b85f423f5655d8eadba6c))
- **all:** Auto-regenerate discovery clients
([#&#8203;3433](https://redirect.github.com/googleapis/google-api-go-client/issues/3433))
([d2187ce](https://redirect.github.com/googleapis/google-api-go-client/commit/d2187ce982d4fef390ad018c8939299bcc8a9b2e))
- **all:** Auto-regenerate discovery clients
([#&#8203;3435](https://redirect.github.com/googleapis/google-api-go-client/issues/3435))
([b93c288](https://redirect.github.com/googleapis/google-api-go-client/commit/b93c288ec0e6dc55b121228c8236338de24d7256))
- **all:** Auto-regenerate discovery clients
([#&#8203;3437](https://redirect.github.com/googleapis/google-api-go-client/issues/3437))
([28ff500](https://redirect.github.com/googleapis/google-api-go-client/commit/28ff500331f494c94fc461dfa66a442a7c0dede8))
- **all:** Auto-regenerate discovery clients
([#&#8203;3438](https://redirect.github.com/googleapis/google-api-go-client/issues/3438))
([0172d56](https://redirect.github.com/googleapis/google-api-go-client/commit/0172d5662d927cd0e7411516e52b3181f8ce3c00))

###
[`v0.259.0`](https://redirect.github.com/googleapis/google-api-go-client/releases/tag/v0.259.0)

[Compare
Source](https://redirect.github.com/googleapis/google-api-go-client/compare/v0.258.0...v0.259.0)

##### ⚠ BREAKING CHANGES

- remove firebaseremoteconfig from package list
([#&#8203;3422](https://redirect.github.com/googleapis/google-api-go-client/issues/3422))

##### Features

- **all:** Auto-regenerate discovery clients
([#&#8203;3412](https://redirect.github.com/googleapis/google-api-go-client/issues/3412))
([c7d21a4](https://redirect.github.com/googleapis/google-api-go-client/commit/c7d21a4d7b388f98004cdef7eb1da28afda20e3c))
- **all:** Auto-regenerate discovery clients
([#&#8203;3415](https://redirect.github.com/googleapis/google-api-go-client/issues/3415))
([6860a5e](https://redirect.github.com/googleapis/google-api-go-client/commit/6860a5e602d186c2b09c124bf66eed5ff9a4417c))
- **all:** Auto-regenerate discovery clients
([#&#8203;3417](https://redirect.github.com/googleapis/google-api-go-client/issues/3417))
([0a99634](https://redirect.github.com/googleapis/google-api-go-client/commit/0a99634bc071a7c86eef4397bc7f236f7e691453))
- **all:** Auto-regenerate discovery clients
([#&#8203;3419](https://redirect.github.com/googleapis/google-api-go-client/issues/3419))
([03d987b](https://redirect.github.com/googleapis/google-api-go-client/commit/03d987b2b4bed89a1d97eae8fd1c1390b03aa5ed))
- **all:** Auto-regenerate discovery clients
([#&#8203;3421](https://redirect.github.com/googleapis/google-api-go-client/issues/3421))
([632ee92](https://redirect.github.com/googleapis/google-api-go-client/commit/632ee92f17be886948004adc2096825fb259d5e3))
- **all:** Auto-regenerate discovery clients
([#&#8203;3425](https://redirect.github.com/googleapis/google-api-go-client/issues/3425))
([b599823](https://redirect.github.com/googleapis/google-api-go-client/commit/b5998236840eb877911befa581668ad47ea5dc02))
- Support write checksums in json resumable uploads
([#&#8203;3405](https://redirect.github.com/googleapis/google-api-go-client/issues/3405))
([6e57e38](https://redirect.github.com/googleapis/google-api-go-client/commit/6e57e384f3af2773be6ec086c7cca6a500a9c9f5))

##### Bug Fixes

- **option:** Remove option.WithAuthCredentials from validation
([#&#8203;3420](https://redirect.github.com/googleapis/google-api-go-client/issues/3420))
([2c33732](https://redirect.github.com/googleapis/google-api-go-client/commit/2c337321d374c3e9f02c09c75cb94b73eaf23fd2))
- Remove firebaseremoteconfig from package list
([#&#8203;3422](https://redirect.github.com/googleapis/google-api-go-client/issues/3422))
([fd0ce7c](https://redirect.github.com/googleapis/google-api-go-client/commit/fd0ce7cd83e33d83e3040e4cc3c8f39fc4aed6dd))
- **transport:** Remove singleton and restore normal usage of
otelgrpc.clientHandler
([#&#8203;3424](https://redirect.github.com/googleapis/google-api-go-client/issues/3424))
([24fbfcb](https://redirect.github.com/googleapis/google-api-go-client/commit/24fbfcbae5daea4fd67445129091522c6fad5200)),
refs
[#&#8203;2321](https://redirect.github.com/googleapis/google-api-go-client/issues/2321)
[#&#8203;2329](https://redirect.github.com/googleapis/google-api-go-client/issues/2329)

##### Miscellaneous Chores

- Correct release version
([#&#8203;3426](https://redirect.github.com/googleapis/google-api-go-client/issues/3426))
([a783dbb](https://redirect.github.com/googleapis/google-api-go-client/commit/a783dbb2bb83627f299916fb808756cc64038fdd))

###
[`v0.258.0`](https://redirect.github.com/googleapis/google-api-go-client/releases/tag/v0.258.0)

[Compare
Source](https://redirect.github.com/googleapis/google-api-go-client/compare/v0.257.0...v0.258.0)

##### Features

- **all:** Auto-regenerate discovery clients
([#&#8203;3392](https://redirect.github.com/googleapis/google-api-go-client/issues/3392))
([db6e653](https://redirect.github.com/googleapis/google-api-go-client/commit/db6e6530eaa7bfa2bb7c5a190822422a410fdbee))
- **all:** Auto-regenerate discovery clients
([#&#8203;3394](https://redirect.github.com/googleapis/google-api-go-client/issues/3394))
([7a9ae94](https://redirect.github.com/googleapis/google-api-go-client/commit/7a9ae9465365e4f8dafe94fe66472347089f9d2b))
- **all:** Auto-regenerate discovery clients
([#&#8203;3395](https://redirect.github.com/googleapis/google-api-go-client/issues/3395))
([dd93f67](https://redirect.github.com/googleapis/google-api-go-client/commit/dd93f673e7e190062bd70ea6349846babd9d5a18))
- **all:** Auto-regenerate discovery clients
([#&#8203;3396](https://redirect.github.com/googleapis/google-api-go-client/issues/3396))
([302ad5f](https://redirect.github.com/googleapis/google-api-go-client/commit/302ad5fe6f2083ecb1ae931a65ead0db05f31041))
- **all:** Auto-regenerate discovery clients
([#&#8203;3398](https://redirect.github.com/googleapis/google-api-go-client/issues/3398))
([5dfcd09](https://redirect.github.com/googleapis/google-api-go-client/commit/5dfcd09b444ac707e0a4bf8faaa3005d7446c246))
- **all:** Auto-regenerate discovery clients
([#&#8203;3401](https://redirect.github.com/googleapis/google-api-go-client/issues/3401))
([cd3e656](https://redirect.github.com/googleapis/google-api-go-client/commit/cd3e656aba7e5a7dfc99d26edda519bea9927294))
- **all:** Auto-regenerate discovery clients
([#&#8203;3402](https://redirect.github.com/googleapis/google-api-go-client/issues/3402))
([9e6446a](https://redirect.github.com/googleapis/google-api-go-client/commit/9e6446a027f032b942e6cf107d85c9bafbeceed1))
- **all:** Auto-regenerate discovery clients
([#&#8203;3404](https://redirect.github.com/googleapis/google-api-go-client/issues/3404))
([453c04a](https://redirect.github.com/googleapis/google-api-go-client/commit/453c04a2253514c5674147b8301897955da7bdee))
- **all:** Auto-regenerate discovery clients
([#&#8203;3406](https://redirect.github.com/googleapis/google-api-go-client/issues/3406))
([af03509](https://redirect.github.com/googleapis/google-api-go-client/commit/af035092fea5561e35b88f60b53f2d13c3d31918))
- **all:** Auto-regenerate discovery clients
([#&#8203;3407](https://redirect.github.com/googleapis/google-api-go-client/issues/3407))
([41e2f8f](https://redirect.github.com/googleapis/google-api-go-client/commit/41e2f8f21da1fe333321dae2e29d2c9b34e2c170))
- **all:** Auto-regenerate discovery clients
([#&#8203;3408](https://redirect.github.com/googleapis/google-api-go-client/issues/3408))
([ba64741](https://redirect.github.com/googleapis/google-api-go-client/commit/ba647419702c7484983a89f4133efb00a97dfb6c))
- **all:** Auto-regenerate discovery clients
([#&#8203;3409](https://redirect.github.com/googleapis/google-api-go-client/issues/3409))
([5d17056](https://redirect.github.com/googleapis/google-api-go-client/commit/5d17056dd3806211b5505206a08dcc204048c367))
- **all:** Auto-regenerate discovery clients
([#&#8203;3410](https://redirect.github.com/googleapis/google-api-go-client/issues/3410))
([90b301b](https://redirect.github.com/googleapis/google-api-go-client/commit/90b301bf2f6dac8edbbf072ee06e9aa09aa0b12a))
- **option:** Deprecate unsafe credentials JSON loading options
([#&#8203;3356](https://redirect.github.com/googleapis/google-api-go-client/issues/3356))
([a5426fa](https://redirect.github.com/googleapis/google-api-go-client/commit/a5426fa66cb1b38be2b24a3ebf8147b2f17b799f))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "on tuesday" (UTC), 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 these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/open-telemetry/opentelemetry-collector-contrib).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My42Ni40IiwidXBkYXRlZEluVmVyIjoiNDMuNjYuNCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIiwicmVub3ZhdGVib3QiXX0=-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: otelbot <197425009+otelbot@users.noreply.github.com>
Co-authored-by: Yang Song <songy23@users.noreply.github.com>
Co-authored-by: Yang Song <yang.song@datadoghq.com>

* [processor/k8s_attributes] Log warning in case deprecated attributes are enabled (#46958)

## Description
Resolves #46932 

This PR adds a startup warning to the `k8sattributesprocessor` when a
user has explicitly enabled deprecated V0 Semantic Convention
attributes, but has not enabled the
`processor.k8sattributes.DontEmitV0K8sConventions` feature gate.

## Changes
- Updated `Start()` in `processor.go` to inspect `Extract.Metadata`,
`Extract.Labels`, and `Extract.Annotations` for legacy usage.
- Emits a structured `Warn` log referencing the Semantic Conventions
Compatibility README section.
- Added a corresponding test in `processor_test.go` using
`zaptest/observer` to verify the warning is correctly logged at startup.
- Added changelog entry.

---------

Signed-off-by: singhvibhanshu <singhvibhanshu@hotmail.com>
Co-authored-by: Christos Markou <chrismarkou92@gmail.com>

* fix(deps): update all cloud.google.com/go packages (#46960)

This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-c…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

first-time contributor PRs made by new contributors processor/tailsampling Tail sampling processor ready to merge Code review completed; ready to merge by maintainers Skip Changelog PRs that do not require a CHANGELOG.md entry waiting-for-code-owners

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[processor/tailsamplingprocessor]: Report for failed tests on main

5 participants