Commit Graph

312 Commits

Author SHA1 Message Date
OpenTelemetry Bot ab80fb406a
[chore] Prepare release v1.34.0/v0.128.0 (#13180)
The following commands were run to prepare this release:
- make chlog-update VERSION=v1.34.0/v0.128.0
- make prepare-release PREVIOUS_VERSION=1[.]33[.]0
RELEASE_CANDIDATE=1.34.0 MODSET=stable
- make prepare-release PREVIOUS_VERSION=0[.]127[.]0
RELEASE_CANDIDATE=0.128.0 MODSET=beta
2025-06-09 16:08:43 +00:00
Pablo Baeyens 9ab25f6f66
[confmap] Return nil map if original map was nil (#13161)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Amends `ToStringMap` so that it returns `map[string]any(nil)` if the map
used to create this `Conf` was nil. Currently it returns an empty map.

I consider this a bug since, while not explicitly undocumented, I would
expect the following two properties to be true, and they were not before
this change:
1. For any map `m` without `expandedValue`s,
`NewFromStringMap(m).ToStringMap() == m`
2. For any map `m` without `expandedValue`s and any `path` referencing
an existing key in `m` with a `map[string]any` value,
`NewFromStringMap(m).Sub(path) == m[path[0]][path[1]][...][path[N]]`

<!-- Issue number if applicable -->
#### Link to tracking issue

I need this to be able to distinguish between 

```
foo:
   bar:
```

and

```
foo:
  bar: {}
```

which currently have different behaviors when mapping to pointers.

The goal is to be able to do #13168
2025-06-09 10:43:33 +00:00
Antoine Toulme 72878a1e97
[confmap] fix panic when assigning nil maps (#13118)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Do not panic on assigning nil maps to non-nil maps

<!-- Issue number if applicable -->
#### Link to tracking issue
Fixes #13117

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

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Pablo Baeyens <pbaeyens31+github@gmail.com>
2025-06-03 08:54:01 +00:00
OpenTelemetry Bot 2353b750bd
[chore] Prepare release v1.33.0/v0.127.0 (#13094)
The following commands were run to prepare this release:
- make chlog-update VERSION=v1.33.0/v0.127.0
- make prepare-release PREVIOUS_VERSION=1[.]32[.]0
RELEASE_CANDIDATE=1.33.0 MODSET=stable
- make prepare-release PREVIOUS_VERSION=0[.]126[.]0
RELEASE_CANDIDATE=0.127.0 MODSET=beta
2025-05-26 19:18:37 +00:00
Pablo Baeyens dc3f5d20bb
[confmap] Add Conf.Delete method (#13064)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Adds a method to delete a path from a `Conf` object.

I needed this for #13060

---------

Co-authored-by: Jade Guiton <jade.guiton@datadoghq.com>
2025-05-21 23:13:29 +00:00
Pablo Baeyens a80754f55f
[chore] Document ToStringMap behavior on values with multiple representations (#13061)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Documents the behavior of `ToStringMap` when there are multiple
representations available
2025-05-21 16:52:36 +00:00
Pablo Baeyens 943627b0fe
[chore] Clarify that Unmarshaler only supports structs (#13045)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Clarifies usage of `confmap.Unmarshaler`. This is a limitation that
currently exists since mapstructure will fail to map between the types.
2025-05-16 11:49:08 +00:00
Pablo Baeyens e9f3dec3c6
[confmap] Enable `DecodeNil` option (#12996)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

<!-- Issue number if applicable -->

Enables `DecoderConfig.DecodeNil` 


#### Link to tracking issue

Taken from #10260
Updates #12981
2025-05-13 08:12:01 +00:00
OpenTelemetry Bot c2431f0ec1
[chore] Prepare release v1.32.0/v0.126.0 (#13026)
The following commands were run to prepare this release:
- make chlog-update VERSION=v1.32.0/v0.126.0
- make prepare-release PREVIOUS_VERSION=1[.]31[.]0
RELEASE_CANDIDATE=1.32.0 MODSET=stable
- make prepare-release PREVIOUS_VERSION=0[.]125[.]0
RELEASE_CANDIDATE=0.126.0 MODSET=beta

---------

Co-authored-by: Dmitry Anoshin <anoshindx@gmail.com>
2025-05-13 05:00:49 +00:00
Pablo Baeyens 5800834fba
[chore] Make mapstructure hooks safe against untyped nils (#13001)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

If we enable `DecodeNil` as true, we may have [untyped
nils](https://go.dev/doc/faq#nil_error) being passed. Unfortunately,
these are not valid values for `reflect`, which leads to surprising
behavior such as golang/go/issues/51649.

Unfortunately, the default hooks from mapstructure do not deal with this
properly. To account for this, we:
- Vendor and change the `ComposeDecodeHookFunc` function so that this
case is accounted for the kinds of hooks that just won't work with
untyped nils
- Create a safe wrapper for the hooks that do work with untyped nils.
This wrapper is used in all hooks, but in the interest of keeping as
close to what I would imagine upstream will accept, I did not add this
to the compose function.

This should not have any end-user observable behavior.

<!-- Issue number if applicable -->
#### Link to tracking issue

Attempt to work around
https://github.com/open-telemetry/opentelemetry-collector/pull/12996#issuecomment-2862859367

---------

Co-authored-by: Evan Bradley <11745660+evan-bradley@users.noreply.github.com>
2025-05-09 14:34:39 +00:00
Pablo Baeyens 6bd77b33a5
[chore] Add tests loading nil to any (#12998)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

While working on #12981, I would have found it useful to have these
tests, since they surfaced a bug when enabling `DecodeNil`.
2025-05-09 09:36:54 +00:00
Vihas Makwana 5a9dbb5b02
[chore][confma] minor refactor of `enableMergeAppendOption` feature gate (#12976)
@mx-psi @dmitryax While working on my RFC, I realized that we can
simplify the logic by moving the merge behavior into `conf.Merge`.
Currently, the feature gate check happens externally, and we choose the
merge option based on that.

This PR moves the check inside `conf.Merge`. By doing this
[converters](https://github.com/open-telemetry/opentelemetry-collector/blob/main/confmap/README.md)
can also make use of this feature.

There are no changes to any API signatures, so this doesn’t introduce
any breaking changes. Let me know what you think about this.
2025-05-07 00:12:12 +00:00
Antoine Toulme 829157cef7
[chore] add checkapi to tools (#12954)
Adds checkapi to the tools and a make target to run it.

Fixes #12360

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Evan Bradley <11745660+evan-bradley@users.noreply.github.com>
Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2025-05-05 15:52:16 +00:00
Pablo Baeyens 29aaad3dfe
[chore] Generate codecov badge for all READMEs (#12962)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

<!-- Issue number if applicable -->

Adds a CodeCov status badge unless explicitly disabled.

I have disabled this in core until we roll this out in contrib to show
the Go SIG and move codecovgen to build tools

#### Link to tracking issue

Updates open-telemetry/opentelemetry-collector-contrib/issues/39583
2025-05-05 15:26:50 +00:00
Vihas Makwana 84888adb37
[confmap] - add a more targeted version of append-merging strategy (#12926)
Follow-up of
https://github.com/open-telemetry/opentelemetry-collector/pull/12097/

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

Ideally, users want to merge lists in pipelines only. In this PR, I'm
adding support for merging following components:
1. extensions
2. receivers
3. exporters

We make use of glob-like pattern to match the path because there can be
multiple pipelines configured. Inspired by @evan-bradley's
[idea](https://github.com/open-telemetry/opentelemetry-collector/pull/12097/#discussion_r1918620008).

I'm leaving `processors` out of this list because we make an ordering
guarantee.

#### _**Future plan:**_ 
Once this PR gets merged, it would make it easier for us to decide upon
the command line flags to make this option configurable over the RFC.
Right now, `patterns` is hardcoded to include above mentioned
components, but we can easily make it configurable after making some
tweaks.

<!-- Issue number if applicable -->
### Link to tracking issue
Relates
https://github.com/open-telemetry/opentelemetry-collector/issues/8754

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

Expanded the existing test cases

<!--Describe the documentation added.-->
#### Documentation
2025-05-05 09:34:53 +00:00
Vihas Makwana 727ae96d62
[confmap] use DeepEqual when using confmap.enableMergeAppendOption (#12952)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

`Equal(..)` panics when we're comparing maps. Use `reflect.DeepEqual`
instead. It behaves same way as `Equal` for types such as `int`,
`string`, `float` etc, but compares individual elements for maps as
well.

<!-- Issue number if applicable -->
#### Link to tracking issue
Fixes
https://github.com/open-telemetry/opentelemetry-collector/issues/12932

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

Added a scenario

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

<!--Please delete paragraphs that you did not use before submitting.-->
2025-05-01 19:41:16 +00:00
Heitor Ganzeli dd484104f9
Add documentation example for xconfmap (#5675) (#12832)
#### Description

This PR introduces a simple testable examples to the package
[confmap](/confmap/xconfmap). it's basically a copy of the documentation
example on
https://opentelemetry.io/docs/collector/building/receiver/#designing-and-validating-receiver-settings

#### Issue:
https://github.com/open-telemetry/opentelemetry-collector/issues/5675#issuecomment-2796741807

#### Testing

the testable example was executed successfully


![image](https://github.com/user-attachments/assets/1b992f1a-fd69-452d-be46-288672710334)


#### Documentation

this testable example follows
https://go.dev/blog/examples#larger-examples format and should be
automatically added to `xconfmap` package documentation

Co-authored-by: Pablo Baeyens <pbaeyens31+github@gmail.com>
Co-authored-by: Pablo Baeyens <pablo.baeyens@datadoghq.com>
2025-04-30 09:22:51 +00:00
OpenTelemetry Bot 42a3ae04a7
[chore] Prepare release v1.31.0/v0.125.0 (#12936)
The following commands were run to prepare this release:
- make chlog-update VERSION=v1.31.0/v0.125.0
- make prepare-release PREVIOUS_VERSION=1[.]30[.]0
RELEASE_CANDIDATE=1.31.0 MODSET=stable
- make prepare-release PREVIOUS_VERSION=0[.]124[.]0
RELEASE_CANDIDATE=0.125.0 MODSET=beta
2025-04-28 19:04:17 +00:00
Pablo Baeyens bac08e21f5
[confmap] Correctly distinguish between empty and nil slices (#12872)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

<!-- Issue number if applicable -->

A second attempt at #11882.

Note that I added some tests in #12871 to prevent something like #12661
from happening again.

#### Link to tracking issue
Fixes #11749

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

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

See tests from #12871 as well as the new tests added here.
2025-04-21 09:07:57 +00:00
Pablo Baeyens 78663f9547
[chore][confmap] Add tests for handling of slices (#12871)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

<!-- Issue number if applicable -->

Adds a test for #12661 and another test present on #11882.

I verified that the first test fails in v0.123.0: on this version the
slice has `[]S{A: "A", B: "B"}` instead.
2025-04-16 14:09:32 +00:00
renovate[bot] 1572a5bc47
fix(deps): update all github.com/knadh/koanf packages to v1 (major) (#12864)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/knadh/koanf/parsers/yaml](https://redirect.github.com/knadh/koanf)
| `v0.1.0` -> `v1.0.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fknadh%2fkoanf%2fparsers%2fyaml/v1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fknadh%2fkoanf%2fparsers%2fyaml/v1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fknadh%2fkoanf%2fparsers%2fyaml/v0.1.0/v1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fknadh%2fkoanf%2fparsers%2fyaml/v0.1.0/v1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[github.com/knadh/koanf/providers/confmap](https://redirect.github.com/knadh/koanf)
| `v0.1.0` -> `v1.0.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fknadh%2fkoanf%2fproviders%2fconfmap/v1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fknadh%2fkoanf%2fproviders%2fconfmap/v1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fknadh%2fkoanf%2fproviders%2fconfmap/v0.1.0/v1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fknadh%2fkoanf%2fproviders%2fconfmap/v0.1.0/v1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[github.com/knadh/koanf/providers/fs](https://redirect.github.com/knadh/koanf)
| `v0.1.0` -> `v1.0.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fknadh%2fkoanf%2fproviders%2ffs/v1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fknadh%2fkoanf%2fproviders%2ffs/v1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fknadh%2fkoanf%2fproviders%2ffs/v0.1.0/v1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fknadh%2fkoanf%2fproviders%2ffs/v0.1.0/v1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

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

⚠️ MAJOR VERSION UPDATE ⚠️ - please manually update this
package

---

### Release Notes

<details>
<summary>knadh/koanf (github.com/knadh/koanf/parsers/yaml)</summary>

###
[`v1.0.0`](https://redirect.github.com/knadh/koanf/releases/tag/v1.0.0)

[Compare
Source](https://redirect.github.com/knadh/koanf/compare/v0.1.0...v1.0.0)

- [`deea8ad`](https://redirect.github.com/knadh/koanf/commit/deea8ad)
Upgrade deps

</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).

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

---------

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2025-04-15 20:30:03 +00:00
renovate[bot] 2b5b32a2e1
fix(deps): update module github.com/knadh/koanf/v2 to v2.2.0 (#12857)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/knadh/koanf/v2](https://redirect.github.com/knadh/koanf) |
`v2.1.2` -> `v2.2.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fknadh%2fkoanf%2fv2/v2.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fknadh%2fkoanf%2fv2/v2.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fknadh%2fkoanf%2fv2/v2.1.2/v2.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fknadh%2fkoanf%2fv2/v2.1.2/v2.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

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

---

### Release Notes

<details>
<summary>knadh/koanf (github.com/knadh/koanf/v2)</summary>

###
[`v2.2.0`](https://redirect.github.com/knadh/koanf/releases/tag/v2.2.0)

[Compare
Source](https://redirect.github.com/knadh/koanf/compare/v2.1.2...v2.2.0)

This release sets the min required Go version to v1.23.0

An increasing number of important updates to various deps, including
golang.org/x/\*, require go >= 1.23.0. It is now untenable
to maintain support for older Go versions. This does not break existing
installations, just that further updates will only be available to newer
Go versions.

#### What's Changed

- Update CI by [@&#8203;StefMa](https://redirect.github.com/StefMa) in
[https://github.com/knadh/koanf/pull/332](https://redirect.github.com/knadh/koanf/pull/332)
- Fix typos by
[@&#8203;NathanBaulch](https://redirect.github.com/NathanBaulch) in
[https://github.com/knadh/koanf/pull/336](https://redirect.github.com/knadh/koanf/pull/336)
- adds urfave/cli/v2 flag parser by
[@&#8203;joicemjoseph](https://redirect.github.com/joicemjoseph) in
[https://github.com/knadh/koanf/pull/330](https://redirect.github.com/knadh/koanf/pull/330)
- Bump golang.org/x/net from 0.23.0 to 0.36.0 in /providers/consul by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/knadh/koanf/pull/342](https://redirect.github.com/knadh/koanf/pull/342)
- Added support for Azure Keyvault by
[@&#8203;arawin1979](https://redirect.github.com/arawin1979) in
[https://github.com/knadh/koanf/pull/343](https://redirect.github.com/knadh/koanf/pull/343)
- Bump golang.org/x/crypto from 0.21.0 to 0.35.0 in /providers/vault by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/knadh/koanf/pull/348](https://redirect.github.com/knadh/koanf/pull/348)
- Bump golang.org/x/crypto from 0.17.0 to 0.35.0 in /providers/nats by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/knadh/koanf/pull/347](https://redirect.github.com/knadh/koanf/pull/347)
- Bump github.com/golang-jwt/jwt/v5 from 5.2.1 to 5.2.2 in /examples by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/knadh/koanf/pull/346](https://redirect.github.com/knadh/koanf/pull/346)
- Bump golang.org/x/net from 0.23.0 to 0.36.0 in /providers/vault by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/knadh/koanf/pull/344](https://redirect.github.com/knadh/koanf/pull/344)
- Upgrade min Go version and deps across all providers and parsers by
[@&#8203;knadh](https://redirect.github.com/knadh) in
[https://github.com/knadh/koanf/pull/349](https://redirect.github.com/knadh/koanf/pull/349)

#### New Contributors

- [@&#8203;NathanBaulch](https://redirect.github.com/NathanBaulch) made
their first contribution in
[https://github.com/knadh/koanf/pull/336](https://redirect.github.com/knadh/koanf/pull/336)
- [@&#8203;joicemjoseph](https://redirect.github.com/joicemjoseph) made
their first contribution in
[https://github.com/knadh/koanf/pull/330](https://redirect.github.com/knadh/koanf/pull/330)
- [@&#8203;arawin1979](https://redirect.github.com/arawin1979) made
their first contribution in
[https://github.com/knadh/koanf/pull/343](https://redirect.github.com/knadh/koanf/pull/343)

**Full Changelog**:
https://github.com/knadh/koanf/compare/v2.1.2...v2.2.0

</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 this update
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).

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

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
2025-04-15 16:45:18 +00:00
Alex Boten 582fbbe3fa
update yaml dependency (#12838)
#### Description

This updates replace gopkg.in/yaml.v3 with sigs.k8s.io/yaml

#### Link to tracking issue
Fixes #12827

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2025-04-15 14:52:19 +00:00
Antoine Toulme b3e68c3756
[chore] prevent unkeyed literal initialization (#12762)
This relates to
https://github.com/open-telemetry/opentelemetry-collector/issues/12360

Co-authored-by: Andrzej Stencel <andrzej.stencel@elastic.co>
2025-04-15 08:18:07 +00:00
OpenTelemetry Bot cf18559059
[chore] Prepare release v1.30.0/v0.124.0 (#12834)
The following commands were run to prepare this release:
- make chlog-update VERSION=v1.30.0/v0.124.0
- make prepare-release PREVIOUS_VERSION=1[.]29[.]0
RELEASE_CANDIDATE=1.30.0 MODSET=stable
- make prepare-release PREVIOUS_VERSION=0[.]123[.]0
RELEASE_CANDIDATE=0.124.0 MODSET=beta
2025-04-14 19:00:26 +00:00
Matthieu MOREL 564818fd7f
[chore]: fix testifylint rules (#12791)
#### Description

Fixes testifylint rules which where disabled with golangci-lint v2
upgrade

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2025-04-02 23:10:07 +00:00
Matthieu MOREL cb5c3f4fb9
[chore]: fix staticcheck exclusions (#12792)
#### Description

Fixes staticcheck rules which where disabled with golangci-lint v2
upgrade

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2025-04-02 20:07:55 +00:00
renovate[bot] 24737d8b08
Update module github.com/knadh/koanf/maps to v0.1.2 (#12783)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/knadh/koanf/maps](https://redirect.github.com/knadh/koanf)
| `v0.1.1` -> `v0.1.2` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fknadh%2fkoanf%2fmaps/v0.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fknadh%2fkoanf%2fmaps/v0.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fknadh%2fkoanf%2fmaps/v0.1.1/v0.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fknadh%2fkoanf%2fmaps/v0.1.1/v0.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

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

---

### 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 this update
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).

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

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
Co-authored-by: Yang Song <songy23@users.noreply.github.com>
2025-04-01 15:32:59 +00:00
Tyler Helmuth 1ad6912e6c
[chore] Prepare release v1.29.0/v0.123.0 (#12773)
The following commands were run to prepare this release:

make chlog-update VERSION=v1.29.0/v0.123.0
make prepare-release PREVIOUS_VERSION=1.28.1 RELEASE_CANDIDATE=1.29.0
MODSET=stable
make prepare-release PREVIOUS_VERSION=0.122.1 RELEASE_CANDIDATE=0.123.0
MODSET=beta
2025-03-31 18:44:04 +00:00
Antoine Toulme 0fa0edb80c
[chore] unexport test structs (#12761)
A simple refactoring to unexport structs used in testing.
2025-03-31 15:36:15 +00:00
Evan Bradley a17839e865
[chore] Prepare release v1.28.1/v0.122.1 (#12665)
The following commands were run to prepare this release:

* make chlog-update VERSION=v1.28.1/v0.122.1
* make prepare-release PREVIOUS_VERSION=1[.]28[.]0
RELEASE_CANDIDATE=1.28.1 MODSET=stable
* make prepare-release PREVIOUS_VERSION=0[.]122[.]0
RELEASE_CANDIDATE=0.122.1 MODSET=beta

---------

Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
2025-03-18 13:57:04 -07:00
Evan Bradley 8afa426d18
[confmap] Fix handling for slices with default values (#12662)
#### Description

https://github.com/open-telemetry/opentelemetry-collector/pull/11882
introduced issues with handling slices which have default values. It's
likely that the removal of `zeroSliceHookFunc` is causing problems with
overriding default lists.
2025-03-18 13:01:52 -07:00
OpenTelemetry Bot 8bc15fd4d7
[chore] Prepare release v1.28.0/v0.122.0 (#12650)
The following commands were run to prepare this release:
- make chlog-update VERSION=v1.28.0/v0.122.0
- make prepare-release PREVIOUS_VERSION=1[.]27[.]0
RELEASE_CANDIDATE=1.28.0 MODSET=stable
- make prepare-release PREVIOUS_VERSION=0[.]121[.]0
RELEASE_CANDIDATE=0.122.0 MODSET=beta
2025-03-17 21:38:50 +00:00
Evan Bradley b8830dd7c6
[confmap] Maintain nil slice values when marshaling and unmarshaling (#11882)
Expands on
https://github.com/open-telemetry/opentelemetry-collector/pull/11755 to
show how we could test for a 1:1 mapping between map[string]any <->
`confmap.Conf` <-> Config structs for `[]any(nil)` and `[]any{}` slices.
2025-03-11 14:51:43 +00:00
Matthew Sainsbury 7d3e03e500
[chore] replace deprecated tenv with usetesting (#12576)
#### Description
There are a bunch of warnings in the lint output about tenv being
deprecated, and moving to usetesting. Reference:
https://golangci-lint.run/usage/linters/#tenv

#### Link to tracking issue
none

#### Testing
Ran `make golint` and `make all`
<!--Describe the documentation added.-->

---------

Co-authored-by: Pablo Baeyens <pablo.baeyens@datadoghq.com>
2025-03-07 19:42:15 +00:00
renovate[bot] 8ed28ec63a
Update All go.opentelemetry.io/collector packages (#12542)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[go.opentelemetry.io/collector/config/configopaque](https://redirect.github.com/open-telemetry/opentelemetry-collector)
| `v1.26.0` -> `v1.27.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fcollector%2fconfig%2fconfigopaque/v1.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fcollector%2fconfig%2fconfigopaque/v1.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fcollector%2fconfig%2fconfigopaque/v1.26.0/v1.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fcollector%2fconfig%2fconfigopaque/v1.26.0/v1.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/collector/confmap/provider/envprovider](https://redirect.github.com/open-telemetry/opentelemetry-collector)
| `v1.26.0` -> `v1.27.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fcollector%2fconfmap%2fprovider%2fenvprovider/v1.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fcollector%2fconfmap%2fprovider%2fenvprovider/v1.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fcollector%2fconfmap%2fprovider%2fenvprovider/v1.26.0/v1.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fcollector%2fconfmap%2fprovider%2fenvprovider/v1.26.0/v1.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/collector/confmap/provider/fileprovider](https://redirect.github.com/open-telemetry/opentelemetry-collector)
| `v1.26.0` -> `v1.27.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fcollector%2fconfmap%2fprovider%2ffileprovider/v1.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fcollector%2fconfmap%2fprovider%2ffileprovider/v1.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fcollector%2fconfmap%2fprovider%2ffileprovider/v1.26.0/v1.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fcollector%2fconfmap%2fprovider%2ffileprovider/v1.26.0/v1.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/collector/exporter/otlpexporter](https://redirect.github.com/open-telemetry/opentelemetry-collector)
| `v0.120.0` -> `v0.121.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fcollector%2fexporter%2fotlpexporter/v0.121.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fcollector%2fexporter%2fotlpexporter/v0.121.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fcollector%2fexporter%2fotlpexporter/v0.120.0/v0.121.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fcollector%2fexporter%2fotlpexporter/v0.120.0/v0.121.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/collector/exporter/otlphttpexporter](https://redirect.github.com/open-telemetry/opentelemetry-collector)
| `v0.120.0` -> `v0.121.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fcollector%2fexporter%2fotlphttpexporter/v0.121.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fcollector%2fexporter%2fotlphttpexporter/v0.121.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fcollector%2fexporter%2fotlphttpexporter/v0.120.0/v0.121.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fcollector%2fexporter%2fotlphttpexporter/v0.120.0/v0.121.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/collector/featuregate](https://redirect.github.com/open-telemetry/opentelemetry-collector)
| `v1.25.0` -> `v1.27.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fcollector%2ffeaturegate/v1.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fcollector%2ffeaturegate/v1.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fcollector%2ffeaturegate/v1.25.0/v1.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fcollector%2ffeaturegate/v1.25.0/v1.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/collector/receiver/otlpreceiver](https://redirect.github.com/open-telemetry/opentelemetry-collector)
| `v0.120.0` -> `v0.121.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fcollector%2freceiver%2fotlpreceiver/v0.121.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fcollector%2freceiver%2fotlpreceiver/v0.121.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fcollector%2freceiver%2fotlpreceiver/v0.120.0/v0.121.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fcollector%2freceiver%2fotlpreceiver/v0.120.0/v0.121.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

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

---

### Release Notes

<details>
<summary>open-telemetry/opentelemetry-collector
(go.opentelemetry.io/collector/config/configopaque)</summary>

###
[`v1.27.0`](https://redirect.github.com/open-telemetry/opentelemetry-collector/blob/HEAD/CHANGELOG.md#v1270v01210)

##### 🛑 Breaking changes 🛑

- `confighttp`: Make the client config options `max_idle_conns`,
`max_idle_conns_per_host`, `max_conns_per_host`, and `idle_conn_timeout`
integers
([#&#8203;9478](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/9478))
All four options can be set to `0` where they were previously set to
`null`

##### 🚩 Deprecations 🚩

- `exporterhelper`: Deprecate `min_size_items` and `max_size_items` in
favor of `min_size` and `max_size`.
([#&#8203;12486](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/12486))

##### 💡 Enhancements 💡

- `mdatagen`: Add `converter` and `provider` module classes
([#&#8203;12467](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/12467))

- `pipeline`: output pipeline name with signal as signal\[/name] format
in logs.
([#&#8203;12410](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/12410))

- `memorylimiter`: Add support to configure min GC intervals for soft
and hard limits.
([#&#8203;12450](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/12450))

- `otlpexporter`: Update the stability level for logs, it has been as
stable as traces and metrics for some time.
([#&#8203;12423](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/12423))

- `service`: Create a new subcommand to dump the initial configuration
after resolving/merging.
([#&#8203;11479](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/11479))
To use the `print-initial-config` subcommand, invoke the Collector with
the subcommand and corresponding feature gate: `otelcol
print-initial-config --feature-gates=otelcol.printInitialConfig
--config=config.yaml`.
Note that the feature gate enabling this flag is currently in alpha
stability, and the subcommand may
    be changed in the future.

- `memorylimiterprocessor`: Add support for profiles.
([#&#8203;12453](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/12453))

- `otelcol`: Converters are now available in the `components` command.
([#&#8203;11900](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/11900),
[#&#8203;12385](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/12385))

- `component`: Mark module as stable
([#&#8203;9376](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/9376))

- `confmap`: Surface YAML parsing errors when they happen at the
top-level.
([#&#8203;12180](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/12180))
This adds context to some instances of the error "retrieved value
(type=string) cannot be used as a Conf", which typically happens because
of invalid YAML documents

- `pprofile`: Add LinkIndex attribute to the generated Sample type
([#&#8203;12485](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/12485))

- `exporterhelper`: Stabilize
exporter.UsePullingBasedExporterQueueBatcher and remove old batch sender
([#&#8203;12425](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/12425))

- `mdatagen`: Update metadata schema with new fields without enforcing
them
([#&#8203;12359](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/12359))

##### 🧰 Bug fixes 🧰

- `service`: Fix crash at startup when converting from v0.2.0 to v0.3.0
([#&#8203;12438](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/12438))
- `service`: fix bug in parsing service::telemetry configuration
([#&#8203;12437](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/12437))
- `exporterhelper`: Fix bug where the error logged when conversion of
data fails is always nil
([#&#8203;12510](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/12510))
- `mdatagen`: Adds back missing import for filter when emitting resource
attributes
([#&#8203;12455](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/12455))

</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.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config
help](https://redirect.github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- 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).

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

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
2025-03-04 12:44:56 +00:00
Vihas Makwana 6e82944c1a
[confmap] - new feature flag for append merging strategy (#12097)
Koanf's default merging strategy currently overrides static values such
as slices, numbers, and strings. However, lists of components should be
treated as a special case. This pull request introduces a new command
line option to allow for merging lists instead of discarding the
existing ones.

With this new merging strategy:
- All the lists are merged rather than replaced.
- The merging logic is name-aware, meaning that if components with the
same name appear in both lists, they will only appear once in the final
merged list.

<!-- Issue number if applicable -->
#### Link to tracking issue
Related issues:
- https://github.com/open-telemetry/opentelemetry-collector/issues/8754
- https://github.com/open-telemetry/opentelemetry-collector/issues/8394
- https://github.com/open-telemetry/opentelemetry-collector/issues/10370

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

<!--Describe the documentation added.-->
#### Documentation
- Added under readme.


##### Example
Consider the following configs,

```yaml
# main.yaml
receivers:
  otlp/in:
processors:
  batch:
exporters:
  otlp/out:
extensions:
  file_storage:

service:
  pipelines:
    traces:
      receivers: [ otlp/in ]
      processors: [ batch ]
      exporters: [ otlp/out ]
  extensions: [ file_storage ]
```


```yaml
# extra_extension.yaml
extensions:
  healthcheckv2:

service:
  extensions: [ healthcheckv2 ]
```

If you run the collector with following command,
```
otelcol --config=main.yaml --config=extra_extension.yaml --feature-gates=-confmap.enableMergeAppendOption
```
then the final configuration after config resolution will look like
following:

```yaml
# main.yaml
receivers:
  otlp/in:
processors:
  batch:
exporters:
  otlp/out:
extensions:
  file_storage:
  healthcheckv2:

service:
  pipelines:
    traces:
      receivers: [ otlp/in ]
      processors: [ batch ]
      exporters: [ otlp/out ]
  extensions: [ file_storage, healthcheckv2 ]
```

For backward compatibly, the default behaviour is **not** to merge
lists. Users who want to explicitly merge lists can enable the command
line option.

Note: I’d appreciate your feedback on this 🙏
2025-03-04 09:56:22 +00:00
OpenTelemetry Bot 9ff68e1d3b
[chore] Prepare release v1.27.0/v0.121.0 (#12534)
The following commands were run to prepare this release:
- make chlog-update VERSION=v1.27.0/v0.121.0
- make prepare-release PREVIOUS_VERSION=1[.]26[.]0
RELEASE_CANDIDATE=1.27.0 MODSET=stable
- make prepare-release PREVIOUS_VERSION=0[.]120[.]0
RELEASE_CANDIDATE=0.121.0 MODSET=beta
2025-03-03 16:27:02 +00:00
Evan Bradley 1a0ccdfa35
[chore][yamlprovider] Add README file (#12516)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Add a README for the YAML file with an mdatagen autogenerated section
and basic usage information.
2025-02-27 14:57:55 +00:00
Evan Bradley 273742a419
[chore][httpsprovider] Add README file (#12515)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Similar to the other PRs, add a readme to the HTTP provider with basic
usage information.
2025-02-27 14:37:15 +00:00
Evan Bradley 3c72d3551b
[chore][envprovider] Fix OTel doc link (#12504)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

The existing link 404s, this updates it to the correct URL.
2025-02-27 12:44:31 +00:00
Evan Bradley 1c683a1da1
[chore][fileprovider] Add README file (#12506)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Use mdatagen for the file provider. This switches the package test to be
generated and adds an autogenerated section to the readme.

I've also populated the readme with basic usage information.
2025-02-27 12:44:11 +00:00
Evan Bradley de6a7d1549
[chore][httpprovider] Add README file (#12507)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Use mdatagen for the HTTP provider. This switches the package test to be
generated and adds an autogenerated section to the readme.
2025-02-27 12:44:07 +00:00
Evan Bradley e6b1e92231
[envprovider] Add README file (#12499)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Use mdatagen for the env provider. This switches the package test to be
generated and adds an autogenerated section to the readme.

I've also populated the readme with basic usage information.

<!-- Issue number if applicable -->
#### Link to tracking issue
Fixes
https://github.com/open-telemetry/opentelemetry-collector/issues/12465
2025-02-26 16:55:31 +00:00
Pablo Baeyens e7f071d43c
[confmap] Add error hint when invalid YAML was passed (#12180)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

<!-- Issue number if applicable -->

Add error hint field to surface YAML parsing errors. This only surfaces
the error for top-level URIs but it's a step in the right direction.

Error when passing a file with contents `[invalid:,` as the config:

Before:
```
retrieved value (type=string) cannot be used as a Conf
```

After: 
```
retrieved value (type=string) cannot be used as a Conf: assuming string type since contents are not valid YAML: yaml: line 1: did not find expected node content
```

#### Link to tracking issue
Updates #12000

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

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

<!--Please delete paragraphs that you did not use before submitting.-->
2025-02-25 10:05:21 +00:00
renovate[bot] eb6fe00442
Update All go.opentelemetry.io/collector packages (#12418)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[go.opentelemetry.io/collector/config/configopaque](https://redirect.github.com/open-telemetry/opentelemetry-collector)
| `v1.25.0` -> `v1.26.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fcollector%2fconfig%2fconfigopaque/v1.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fcollector%2fconfig%2fconfigopaque/v1.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fcollector%2fconfig%2fconfigopaque/v1.25.0/v1.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fcollector%2fconfig%2fconfigopaque/v1.25.0/v1.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/collector/confmap/provider/envprovider](https://redirect.github.com/open-telemetry/opentelemetry-collector)
| `v1.25.0` -> `v1.26.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fcollector%2fconfmap%2fprovider%2fenvprovider/v1.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fcollector%2fconfmap%2fprovider%2fenvprovider/v1.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fcollector%2fconfmap%2fprovider%2fenvprovider/v1.25.0/v1.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fcollector%2fconfmap%2fprovider%2fenvprovider/v1.25.0/v1.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/collector/confmap/provider/fileprovider](https://redirect.github.com/open-telemetry/opentelemetry-collector)
| `v1.25.0` -> `v1.26.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fcollector%2fconfmap%2fprovider%2ffileprovider/v1.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fcollector%2fconfmap%2fprovider%2ffileprovider/v1.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fcollector%2fconfmap%2fprovider%2ffileprovider/v1.25.0/v1.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fcollector%2fconfmap%2fprovider%2ffileprovider/v1.25.0/v1.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/collector/exporter/otlpexporter](https://redirect.github.com/open-telemetry/opentelemetry-collector)
| `v0.119.0` -> `v0.120.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fcollector%2fexporter%2fotlpexporter/v0.120.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fcollector%2fexporter%2fotlpexporter/v0.120.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fcollector%2fexporter%2fotlpexporter/v0.119.0/v0.120.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fcollector%2fexporter%2fotlpexporter/v0.119.0/v0.120.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/collector/exporter/otlphttpexporter](https://redirect.github.com/open-telemetry/opentelemetry-collector)
| `v0.119.0` -> `v0.120.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fcollector%2fexporter%2fotlphttpexporter/v0.120.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fcollector%2fexporter%2fotlphttpexporter/v0.120.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fcollector%2fexporter%2fotlphttpexporter/v0.119.0/v0.120.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fcollector%2fexporter%2fotlphttpexporter/v0.119.0/v0.120.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/collector/receiver/otlpreceiver](https://redirect.github.com/open-telemetry/opentelemetry-collector)
| `v0.119.0` -> `v0.120.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fcollector%2freceiver%2fotlpreceiver/v0.120.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fcollector%2freceiver%2fotlpreceiver/v0.120.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fcollector%2freceiver%2fotlpreceiver/v0.119.0/v0.120.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fcollector%2freceiver%2fotlpreceiver/v0.119.0/v0.120.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/collector/service](https://redirect.github.com/open-telemetry/opentelemetry-collector)
| `v0.119.0` -> `v0.120.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fcollector%2fservice/v0.120.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fcollector%2fservice/v0.120.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fcollector%2fservice/v0.119.0/v0.120.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fcollector%2fservice/v0.119.0/v0.120.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

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

---

### Release Notes

<details>
<summary>open-telemetry/opentelemetry-collector
(go.opentelemetry.io/collector/config/configopaque)</summary>

###
[`v1.26.0`](https://redirect.github.com/open-telemetry/opentelemetry-collector/blob/HEAD/CHANGELOG.md#v1260v01200)

##### 🛑 Breaking changes 🛑

- `all`: Added support for go1.24, bumped minimum version to 1.23
([#&#8203;12370](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/12370))
- `mdatagen`: Removing deprecated generated funcs and a few test funcs
as well.
([#&#8203;12304](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/12304))
- `service`: Align component logger attributes with those defined in RFC
([#&#8203;12217](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/12217))
See [Pipeline Component Telemetry
RFC](https://redirect.github.com/open-telemetry/opentelemetry-collector/blob/main/docs/rfcs/component-universal-telemetry.md#attributes)

##### 💡 Enhancements 💡

- `otlpreceiver`: Update stability for logs
([#&#8203;12335](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/12335))
- `exporterhelper`: Implement sync disabled queue used when batching is
enabled.
([#&#8203;12245](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/12245))
- `exporterhelper`: Enable the new pull-based batcher in exporterhelper
([#&#8203;12291](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/12291))
- `exporterhelper`: Update queue size after the element is done exported
([#&#8203;12399](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/12399))
After this change the active queue size will include elements in the
process of being exported.
- `otelcol`: Add featuregate command to display information about
available features
([#&#8203;11998](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/11998))
The featuregate command allows users to view detailed information about
feature gates
    including their status, stage, and description.

##### 🧰 Bug fixes 🧰

- `memorylimiter`: Logger no longer attributes to single signal,
pipeline, or component.
([#&#8203;12217](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/12217))
- `otlpreceiver`: Logger no longer attributes to random signal when
receiving multiple signals.
([#&#8203;12217](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/12217))
- `exporterhelper`: Fix undefined behavior access to request after send
to next component. This causes random memory access.
([#&#8203;12281](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/12281))
- `exporterhelper`: Fix default batcher to correctly call all done
callbacks exactly once
([#&#8203;12247](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/12247))
- `otlpreceiver`: Fix OTLP http receiver to correctly set Retry-After
([#&#8203;12367](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/12367))
- `otlphttpexporter`: Fix parsing logic for Retry-After in OTLP http
protocol.
([#&#8203;12366](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/12366))
The value of Retry-After field can be either an HTTP-date or
delay-seconds and the current logic only parsed delay-seconds.
- `cmd/builder`: Ensure unique aliases for modules with same suffix
([#&#8203;12201](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/12201))

</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.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config
help](https://redirect.github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- 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).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-18 05:46:56 +00:00
OpenTelemetry Bot c87bda5bd0
[chore] Prepare release v1.26.0/v0.120.0 (#12412)
The following commands were run to prepare this release:
- make chlog-update VERSION=v1.26.0/v0.120.0
- make prepare-release PREVIOUS_VERSION=1[.]25[.]0
RELEASE_CANDIDATE=1.26.0 MODSET=stable
- make prepare-release PREVIOUS_VERSION=0[.]119[.]0
RELEASE_CANDIDATE=0.120.0 MODSET=beta
2025-02-18 00:10:21 +00:00
Antoine Toulme f71fe2757f
[chore] fix metadata.yaml (#12387)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
fix metadata.yaml github_project, add a go:generate instruction to
confmap and a banner to README
2025-02-14 11:00:42 +00:00
Alex Boten e4b9425241
bump minimum supported go version to 1.23 (#12370)
With the release of 1.24, we need to bump the tested versions.

---------

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2025-02-12 15:03:19 +00:00
Moritz Wiesinger 43087bdd92
[chore] add githubgen to enhance codeowners and issue templates (#11756)
### This PR
- adds the githubgen tool as a dependency in internal/tools
- uses githubgen to generate codeowners and issue template files
- updates lots of metadata files by
- taking the existing codeowners file and feeding the info from there
back into the component metadata.yaml files or creating new
metadata.yaml files where none existed yet
- adds distributions.yaml as a basis the mostly already existing
`distributions:` keys in metadata.yaml files (needed for githubgen to
work correctly)
- adds relevant make commands to make the githubgen tool usage mostly
transparent to users

This change is a prerequisite to be able to ping codeowners reliably
with automated tooling as a next step.


Part of #11562

---------

Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
2025-02-06 10:31:36 +00:00