Commit Graph

7203 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
Bogdan Drutu d800ad30aa
[chore] Decouple single vs multi partition batcher (#13173)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2025-06-06 20:04:21 +00:00
Bogdan Drutu 56433bc714
[chore] Extract batcher worker pool, cleanup unit tests (#13164)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2025-06-06 17:55:55 +00:00
Bogdan Drutu c9aaed8349
[chore] Replace usage of puzpuzpuz/xsync with standard sync (#13165)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2025-06-05 21:16:04 +00:00
Bogdan Drutu 9a620a08be
[chore] Small cleanups in the batcher code (#13163)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2025-06-05 19:05:08 +00:00
Pablo Baeyens efac6c7d44
[chore] Use pseudoversions for configoptional (#13162)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Uses valid pseudoversion so that contrib update-otel works
2025-06-05 12:49:16 +00:00
Dmitry Anoshin 1fd105bb27
[exporterhelper] Remove deprecated NewProfilesRequestExporter function (#13157) 2025-06-05 12:37:47 +00:00
Pablo Baeyens e8ca607b79
[receiver/otlpreceiver] Use configoptional type (#13119)
<!--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 -->

Uses `configoptional.Optional` for fields in `protocols` section.

Removes `Unmarshal` method since it is no longer needed.

These are both breaking changes, I think it would be a bit difficult to
do this in two steps, I am happy to work on fixing contrib after this is
merged.

#### Link to tracking issue
Fixes #12980
2025-06-05 11:06:33 +00:00
renovate[bot] 543c65f24f
fix(deps): update module github.com/golangci/golangci-lint/v2 to v2.1.6 (#13136)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/golangci/golangci-lint/v2](https://redirect.github.com/golangci/golangci-lint)
| `v2.1.2` -> `v2.1.6` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fgolangci%2fgolangci-lint%2fv2/v2.1.6?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fgolangci%2fgolangci-lint%2fv2/v2.1.6?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fgolangci%2fgolangci-lint%2fv2/v2.1.2/v2.1.6?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fgolangci%2fgolangci-lint%2fv2/v2.1.2/v2.1.6?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>golangci/golangci-lint
(github.com/golangci/golangci-lint/v2)</summary>

###
[`v2.1.6`](https://redirect.github.com/golangci/golangci-lint/blob/HEAD/CHANGELOG.md#v216)

[Compare
Source](https://redirect.github.com/golangci/golangci-lint/compare/v2.1.5...v2.1.6)

1.  Linters bug fixes
    -   `godot`: from 1.5.0 to 1.5.1
    -   `musttag`: from 0.13.0 to 0.13.1
2.  Documentation
    -   Add note about golangci-lint v2 integration in VS Code

###
[`v2.1.5`](https://redirect.github.com/golangci/golangci-lint/blob/HEAD/CHANGELOG.md#v215)

[Compare
Source](https://redirect.github.com/golangci/golangci-lint/compare/v2.1.4...v2.1.5)

Due to an error related to Snapcraft, some artifacts of the v2.1.4
release have not been published.

This release contains the same things as v2.1.3.

###
[`v2.1.4`](https://redirect.github.com/golangci/golangci-lint/blob/HEAD/CHANGELOG.md#v214)

[Compare
Source](https://redirect.github.com/golangci/golangci-lint/compare/v2.1.3...v2.1.4)

Due to an error related to Snapcraft, some artifacts of the v2.1.3
release have not been published.

This release contains the same things as v2.1.3.

###
[`v2.1.3`](https://redirect.github.com/golangci/golangci-lint/blob/HEAD/CHANGELOG.md#v213)

[Compare
Source](https://redirect.github.com/golangci/golangci-lint/compare/v2.1.2...v2.1.3)

1.  Linters bug fixes
    -   `fatcontext`: from 0.7.2 to 0.8.0
2.  Misc.
    -   migration: fix `nakedret.max-func-lines: 0`
    -   migration: fix order of `staticcheck` settings
    -   fix: add `go.mod` hash to the cache salt
    -   fix: use diagnostic position for related information position

</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:eyJjcmVhdGVkSW5WZXIiOiI0MC4zMy42IiwidXBkYXRlZEluVmVyIjoiNDAuNDAuMyIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIiwicmVub3ZhdGVib3QiXX0=-->

---------

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-06-05 05:12:00 +00:00
Sindy Li 3fc55a65fb
[exporter][batcher] Multi-batch support - Version 2 (#12760)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

This PR introduces two new components
* `Partitioner` - an interface for fetching batch key. A partitioner
type should implement the function `GetKey()` which returns the batching
key. `Partitioner` should be provided to the `queue_bacher` along with
`sizer` in `queue_batch::Settings`.
* `multi_batcher`. It supports key-based batching by routing the
requests to a corresponding `shard_batcher`. Each `shard_batcher`
corresponds to a shard described in
https://github.com/open-telemetry/opentelemetry-collector/issues/12473.

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

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

---------

Co-authored-by: Dmitry Anoshin <anoshindx@gmail.com>
2025-06-05 03:28:15 +00:00
Bogdan Drutu 4074b72f21
Mark telemetry.disableAddressFieldForInternalTelemetry as stable (#13152)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
Co-authored-by: Yang Song <songy23@users.noreply.github.com>
2025-06-04 21:52:14 +00:00
Bogdan Drutu b1ce36b19f
Remove stablized featuregate useOtelWithSDKConfigurationForInternalTelemetry (#13153)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2025-06-04 18:09:34 +00:00
Israel Blancas 698bf40a9c
Print generated resource attributes for internal logs (#13111)
#### Link to tracking issue
Fixes #13110

#### Testing
- Improved the unit tests.

Signed-off-by: Israel Blancas <iblancasa@gmail.com>
2025-06-04 18:02:54 +00:00
Igor Pidik 8377ee7c46
fix(pdata/plog): unmarshal event_name from json (#13123)
#### Description
This PR adds missing logic to process `event_name` field when
unmarshaling LogRecords from JSON.

#### Testing
Added `eventName` to json (un)marshal tests.

Fixes #13127
2025-06-04 16:22:04 +00:00
Alan Lee 6f269eb153
[chore] Unify persistentQueue fields into QueueMetadata (#13140)
Embed QueueMetadata directly into persistentQueue, replacing the
scattered metadata fields.

1. Add QueueMetadata as a member of persistentQueue.
2. Delete redundant fields (queueSize, readIdx, writeIdx, …).

Relates to #13126
2025-06-04 15:57:32 +00:00
Bogdan Drutu 30f27074b1
Remove deprecated MustNewID[WithName] from pipeline (#13139)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2025-06-04 15:56:47 +00:00
Heitor Ganzeli d904716c77
Add documentation example for processor package (#5675) (#13070)
#### Description

This PR introduces a testable example to the package
[processor](/processor). it's a similar example to the documentation one
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/a57a2bc8-22f0-4063-a1b4-aac640423219)


#### Documentation

this testable example follows
https://go.dev/blog/examples#larger-examples format and should be
automatically added to `processor` package documentation
2025-06-04 15:38:51 +00:00
renovate[bot] fd4d3c4465
fix(deps): update module github.com/shirou/gopsutil/v4 to v4.25.5 (#13137)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/shirou/gopsutil/v4](https://redirect.github.com/shirou/gopsutil)
| `v4.25.4` -> `v4.25.5` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fshirou%2fgopsutil%2fv4/v4.25.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fshirou%2fgopsutil%2fv4/v4.25.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fshirou%2fgopsutil%2fv4/v4.25.4/v4.25.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fshirou%2fgopsutil%2fv4/v4.25.4/v4.25.5?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>shirou/gopsutil (github.com/shirou/gopsutil/v4)</summary>

###
[`v4.25.5`](https://redirect.github.com/shirou/gopsutil/releases/tag/v4.25.5)

[Compare
Source](https://redirect.github.com/shirou/gopsutil/compare/v4.25.4...v4.25.5)

<!-- Release notes generated using configuration in .github/release.yml
at v4.25.5 -->

#### What's Changed

##### cpu

- Remove wmi for Get physical CPU core count by
[@&#8203;OrbintSoft](https://redirect.github.com/OrbintSoft) in
[https://github.com/shirou/gopsutil/pull/1839](https://redirect.github.com/shirou/gopsutil/pull/1839)
- fix ignore nakedret by
[@&#8203;mmorel-35](https://redirect.github.com/mmorel-35) in
[https://github.com/shirou/gopsutil/pull/1847](https://redirect.github.com/shirou/gopsutil/pull/1847)
- Fix issues with GetLastError() usage by
[@&#8203;secDre4mer](https://redirect.github.com/secDre4mer) in
[https://github.com/shirou/gopsutil/pull/1848](https://redirect.github.com/shirou/gopsutil/pull/1848)

##### docker

- rename containerid arguments to containerID by
[@&#8203;mmorel-35](https://redirect.github.com/mmorel-35) in
[https://github.com/shirou/gopsutil/pull/1862](https://redirect.github.com/shirou/gopsutil/pull/1862)

##### host

##### Other Changes

- fix(ST1005): Incorrectly formatted error string by
[@&#8203;mmorel-35](https://redirect.github.com/mmorel-35) in
[https://github.com/shirou/gopsutil/pull/1846](https://redirect.github.com/shirou/gopsutil/pull/1846)
- \[darwin]: bump purego veresion to 0.8.3 by
[@&#8203;shirou](https://redirect.github.com/shirou) in
[https://github.com/shirou/gopsutil/pull/1852](https://redirect.github.com/shirou/gopsutil/pull/1852)
- chore: enable staticcheck by
[@&#8203;mmorel-35](https://redirect.github.com/mmorel-35) in
[https://github.com/shirou/gopsutil/pull/1842](https://redirect.github.com/shirou/gopsutil/pull/1842)

#### New Contributors

- [@&#8203;OrbintSoft](https://redirect.github.com/OrbintSoft) made
their first contribution in
[https://github.com/shirou/gopsutil/pull/1839](https://redirect.github.com/shirou/gopsutil/pull/1839)

**Full Changelog**:
https://github.com/shirou/gopsutil/compare/v4.25.4...v4.25.5

</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:eyJjcmVhdGVkSW5WZXIiOiI0MC4zMy42IiwidXBkYXRlZEluVmVyIjoiNDAuMzMuNiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIiwicmVub3ZhdGVib3QiXX0=-->

---------

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-06-04 14:58:21 +00:00
Roger Coll 0f0e1f64de
docs: none values should not take any value (#13141)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Creating an empty Optional[T] type should not require the value.

See:
https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configoptional/optional.go#L109
2025-06-04 09:20:39 +00:00
Chao Weng 14ecff64a5
[mdatagen] Fix code generation when there are no events defined in me… (#13122)
…tadata file

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Currently, resourceAttributeIncludeFilter and
resourceAttributeExcludeFilter are only applicable when event
configurations are defined.

This PR removes them from the generated code when no events are added in
the metadata.

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

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

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

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

---------

Co-authored-by: Dmitry Anoshin <anoshindx@gmail.com>
2025-06-04 04:44:36 +00:00
Chao Weng 802ba4b48b
[mdatagen] Add docs for optional events (#13131)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Add documentation template for optional events.

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

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

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

<!--Please delete paragraphs that you did not use before submitting.-->
2025-06-04 03:39:07 +00:00
Damien Mathieu e1f6708446
Add MoveAndAppendTo to pdata primitive slices (#13074)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

pdata primitive slices are missing `MoveAndAppendTo`, and we're going to
start needing it with the profiles proto upgrade (which has a dictionary
object with primitive type slices that we will need to merge at some
point)
2025-06-03 11:20:25 +00:00
Pablo Baeyens 605011a1fe
[confighttp,configgrpc] Rename TLSSetting to TLS (#13115)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Renames `TLSSetting` fields to `TLS`. The name is a historical artifact
since the `configtls` had `Setting` in the name before. This is more
consistent with the rest.

I think if we do this change we should do it alongside other changes to
confighttp, to avoid breaking our users multiple times.
2025-06-03 10:51:41 +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
renovate[bot] e45c0e524c
Update module go.opentelemetry.io/contrib/otelconf to v0.16.0 (#13098)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[go.opentelemetry.io/contrib/otelconf](https://redirect.github.com/open-telemetry/opentelemetry-go-contrib)
| `v0.15.0` -> `v0.16.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fcontrib%2fotelconf/v0.16.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fcontrib%2fotelconf/v0.16.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fcontrib%2fotelconf/v0.15.0/v0.16.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fcontrib%2fotelconf/v0.15.0/v0.16.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-go-contrib
(go.opentelemetry.io/contrib/otelconf)</summary>

###
[`v0.16.0`](https://redirect.github.com/open-telemetry/opentelemetry-go-contrib/releases/tag/v0.16.0)

[Compare
Source](https://redirect.github.com/open-telemetry/opentelemetry-go-contrib/compare/v0.15.0...v0.16.0)

#### \[0.16.0] - 2021-01-14

##### Fixed

- Fix module path for AWS ECS resource detector
([#&#8203;517](https://redirect.github.com/open-telemetry/opentelemetry-go-contrib/issues/517))

# Raw changes made between v0.15.1 and v0.16.0


[`65367f2`](65367f2b37)
Prepare v0.16.0 release
([#&#8203;523](https://redirect.github.com/open-telemetry/opentelemetry-go-contrib/issues/523))

[`cd07cf3`](cd07cf34da)
Fix module path for AWS ECS resource detector
([#&#8203;517](https://redirect.github.com/open-telemetry/opentelemetry-go-contrib/issues/517))

[`c07a08f`](c07a08f229)
Bump github.com/golangci/golangci-lint from 1.34.1 to 1.35.0 in /tools
([#&#8203;519](https://redirect.github.com/open-telemetry/opentelemetry-go-contrib/issues/519))

[`7717b1d`](7717b1d75c)
Bump github.com/aws/aws-sdk-go from 1.36.19 to 1.36.23 in /detectors/aws
([#&#8203;520](https://redirect.github.com/open-telemetry/opentelemetry-go-contrib/issues/520))

[`c047d14`](c047d14d67)
Update CI badge for README
([#&#8203;516](https://redirect.github.com/open-telemetry/opentelemetry-go-contrib/issues/516))

[`cede46c`](cede46c483)
Merge code coverage output into single file for codecov.io
([#&#8203;514](https://redirect.github.com/open-telemetry/opentelemetry-go-contrib/issues/514))

[`26c2b18`](26c2b1846c)
Remove CircleCI config
([#&#8203;513](https://redirect.github.com/open-telemetry/opentelemetry-go-contrib/issues/513))

[`0ca2a70`](0ca2a70509)
Adding Security Workflows to GitHub Actions (2/2): gosec workflow
([#&#8203;507](https://redirect.github.com/open-telemetry/opentelemetry-go-contrib/issues/507))

[`f6da9db`](f6da9dbb52)
Adding Security Workflows to GitHub Actions (1/2): codeql workflow
([#&#8203;506](https://redirect.github.com/open-telemetry/opentelemetry-go-contrib/issues/506))

[`ccf6b73`](ccf6b7344f)
Bump github.com/aws/aws-sdk-go from 1.36.15 to 1.36.19 in /detectors/aws
([#&#8203;511](https://redirect.github.com/open-telemetry/opentelemetry-go-contrib/issues/511))

[`3e8de75`](3e8de75f4c)
Bump github.com/golangci/golangci-lint from 1.33.0 to 1.34.1 in /tools
([#&#8203;510](https://redirect.github.com/open-telemetry/opentelemetry-go-contrib/issues/510))

[`faf24ad`](faf24adc33)
Add [@&#8203;dashpole](https://redirect.github.com/dashpole) as a
project Approver
([#&#8203;498](https://redirect.github.com/open-telemetry/opentelemetry-go-contrib/issues/498))

[`c1aee10`](c1aee104bc)
Add instrumentation request issue templates
([#&#8203;500](https://redirect.github.com/open-telemetry/opentelemetry-go-contrib/issues/500))

[`c9c0a40`](c9c0a40d8b)
Bump github.com/aws/aws-sdk-go from 1.36.12 to 1.36.15 in /detectors/aws
([#&#8203;503](https://redirect.github.com/open-telemetry/opentelemetry-go-contrib/issues/503))

[`683e08e`](683e08e622)
Bump github.com/aws/aws-sdk-go from 1.36.7 to 1.36.12 in /detectors/aws
([#&#8203;499](https://redirect.github.com/open-telemetry/opentelemetry-go-contrib/issues/499))

[`ec22a4d`](ec22a4dbd1)
adding fetch depth
([#&#8203;497](https://redirect.github.com/open-telemetry/opentelemetry-go-contrib/issues/497))

[`31b2ca6`](31b2ca6f18)
Migrate CircleCI ci.yml workflow to GitHub Actions
([#&#8203;476](https://redirect.github.com/open-telemetry/opentelemetry-go-contrib/issues/476))

</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:eyJjcmVhdGVkSW5WZXIiOiI0MC4xNi4wIiwidXBkYXRlZEluVmVyIjoiNDAuMTYuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIiwicmVub3ZhdGVib3QiXX0=-->

---------

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: Pablo Baeyens <pablo.baeyens@datadoghq.com>
2025-06-02 20:22:33 +00:00
Chao Weng 336efc9f85
[chore] Remove duplicated 'will be's (#13132)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Remove duplicated "will be"s.

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

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

<!--Describe the documentation added.-->
#### Documentation
n/a

<!--Please delete paragraphs that you did not use before submitting.-->
2025-06-02 18:01:33 +00:00
Bogdan Drutu 471361a4c2
[chore] Fix small nits in persistent queue metadata proto (#13125)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2025-06-02 17:24:13 +00:00
Bogdan Drutu c4c0814e36
[chore] Fix small nits in persistent queue metadata sizer conversion and add tests (#13124)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2025-06-02 16:26:40 +00:00
Pablo Baeyens 8cd019139f
[chore][confighttp] Fix NewDefaultServerConfig (#13129)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Sets `TLSSetting` to nil on `ServerConfig` since any non-nil value with
no certificates would fail at runtime.
2025-06-02 15:36:21 +00:00
Christos Markou 2e615287a4
[chore] Update contributing docs with SemConv compatibility guideline (#13101)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

This PR adds a guideline about how metrics'/attributes' addition should
take place in (some) coordination with the Semantic Conventions project.
This addition does not introduce a hard requirement for now but rather
suggests how such coordination with Semantic Conventions can be
achieved.

If this gets merged I plan to extend Contrib's guidelines as well (i.e.
84f1030339/CONTRIBUTING.md (adding-metrics-to-existing-receivers))
to link back to this guideline.

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

/cc @open-telemetry/collector-contrib-approvers
@open-telemetry/collector-approvers

Note: It's still to be defined how Semantic Conventions will affect
components' stability as described at
https://github.com/open-telemetry/opentelemetry-collector/issues/11878,
however prior to the stability concern this PR suggests to update our
contribution guidelines to cover for this treating it as a "soft"
requirement already.

---------

Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
2025-06-02 10:11:55 +00:00
Damien Mathieu 8568c97b0d
Upgrade proto to 1.7.0 (#13075)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

This upgrades protobuf/pdata to
[v1.7.0](https://github.com/open-telemetry/opentelemetry-proto/releases/tag/v1.7.0).

Note: due to the move of the lookup tables, merging profiles required
more non-trivial work.
In order to facilitate this review, merging is therefore currently
disabled for profiles. We will bring it back in a separate PR.

Note: this needs its contrib counterpart before it can be moved out of
draft.
2025-06-02 08:15:14 +00:00
Pablo Baeyens 43965056e8
[confighttp] Remove pointer in CookiesConfig field (#13116)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Removes pointer to `CookiesConfig` field. Since the struct already has
an `enabled` field, it is unnecessary for it to be a pointer.

This is a breaking change, contrib tests show that it does not affect
any contrib component, and it would be hard to do in two steps.

<!-- Issue number if applicable -->
#### Link to tracking issue
Updates #9478
2025-06-02 07:50:58 +00:00
Chao Weng bc58775e9e
[chore][mdatagen] Fix failed tests when there are no enabled events b… (#13121)
…y default

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Sometimes, we want all events to be disabled by default, allowing users
to enable them manually. This approach can be helpful in such cases.

<!--Please delete paragraphs that you did not use before submitting.-->
2025-06-01 21:44:22 +00:00
Jade Guiton 7ff2465190
[componentattribute] Use otelzap.WithAttributes, remove LoggerProviderWithAttributes (#13108)
#### Description

Now that `otelzap` has been bumped up to 0.11.0 (#13103), this PR
follows up on a TODO comment to use
https://github.com/open-telemetry/opentelemetry-go-contrib/pull/6962 to
set instrumentation scope attributes on the Logger created by otelzap,
instead of a workaround (`LoggerProviderWithAttributes`).

This is an internal change, and the new code should be functionally
equivalent, so I don't think this needs a changelog.

#### Testing

I believe this is already covered by existing tests.
2025-05-30 19:13:14 +00:00
Andrew Wilkins 4a3717978a
confighttp: make server span naming spec-compliant (#13088)
#### Description

Update the confighttp server span names to use the low-cardnality
request pattern, rather than the full client-specified path, as
described by the specification:
https://opentelemetry.io/docs/specs/semconv/http/http-spans/#name.

Requires
https://github.com/open-telemetry/opentelemetry-go-contrib/pull/7192

#### Link to tracking issue

Fixes #12468

#### Testing

Added a unit test.

#### Documentation

None

---------

Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2025-05-28 15:59:41 +00:00
Alan Lee 279ccad9f4
[chore] Add unified queueState struct (#13067)
Adds a single key structure to store information about the persistent
queue. #12890
2025-05-28 11:59:01 +00:00
Pablo Baeyens 633b6de37f
[config/configoptional] Add new configoptional module (#13044)
<!--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 new `configoptional` module.

I left `GetOrInsertDefault` out of this first PR so we can get agreement
on the basics first.

#### Link to tracking issue

Fixes #12981
Fixes #10266

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

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

See #13018 for usage and testing of the package on `confighttp` and
`otlpreceiver`.
2025-05-28 11:20:20 +00:00
Tyler Helmuth 9b4911bea1
[service]: use configured logger whenever possible (#13081)
#### Description

I was using the supervised collector today and ran into an issue where
the agent (collector) was crashing on startup and I wasn't seeing the
logs exported via the configured logger, but I knew it existed bc I was
getting the `Setting up own telemetry...` log.

Turns out in `service.New`, once we've created the logger, we aren't
using it to log and following errors. Instead, they are being returned
by `service.New` and handled by the fallbackLogger.

I propose that, since we have a logger, we use it. 

As a followup it would be nice if any confmap errors could be reported
using the instantiated logger, but that would be a bigger refactor.

#### Testing

Tested locally with the following config:

```yaml
receivers:
  nop:
exporters:
  nop:
  otlphttp:
    endpoint: "${MISSING_ENV_VAR}:4318"
service:
  pipelines:
    traces:
      receivers: [nop]
      processors: []
      exporters: [otlphttp]
  telemetry:
    logs:
      processors:
        - batch:
            exporter:
              otlp:
                endpoint: https://api.honeycomb.io:443
                headers:
                  - name: x-honeycomb-team
                    value: `[READACTED]`
                protocol: http/protobuf
```

console output:

```
2025-05-22T17:25:30.764-0600	info	service/service.go:200	Setting up own telemetry...	{"resource": {}}
2025-05-22T17:25:30.764-0600	error	service/service.go:223	failed to initialize service graph	{"resource": {}, "error": "failed to build pipelines: failed to create \"otlphttp\" exporter for data type \"traces\": endpoint must be a valid URL"}
go.opentelemetry.io/collector/service.New
	/Users/tylerhelmuth/projects/opentelemetry-collector/service/service.go:223
go.opentelemetry.io/collector/otelcol.(*Collector).setupConfigurationComponents
	/Users/tylerhelmuth/projects/opentelemetry-collector/otelcol/collector.go:197
go.opentelemetry.io/collector/otelcol.(*Collector).Run
	/Users/tylerhelmuth/projects/opentelemetry-collector/otelcol/collector.go:312
go.opentelemetry.io/collector/otelcol.NewCommand.func1
	/Users/tylerhelmuth/projects/opentelemetry-collector/otelcol/command.go:39
github.com/spf13/cobra.(*Command).execute
	/Users/tylerhelmuth/go/1.24.0/pkg/mod/github.com/spf13/cobra@v1.9.1/command.go:1015
github.com/spf13/cobra.(*Command).ExecuteC
	/Users/tylerhelmuth/go/1.24.0/pkg/mod/github.com/spf13/cobra@v1.9.1/command.go:1148
github.com/spf13/cobra.(*Command).Execute
	/Users/tylerhelmuth/go/1.24.0/pkg/mod/github.com/spf13/cobra@v1.9.1/command.go:1071
main.runInteractive
	/Users/tylerhelmuth/projects/opentelemetry-collector/cmd/otelcorecol/main.go:57
main.run
	/Users/tylerhelmuth/projects/opentelemetry-collector/cmd/otelcorecol/main_others.go:10
main.main
	/Users/tylerhelmuth/projects/opentelemetry-collector/cmd/otelcorecol/main.go:50
runtime.main
	/Users/tylerhelmuth/go/1.24.0/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.1.darwin-arm64/src/runtime/proc.go:283
2025-05-22T17:25:30.758-0600	warn	envprovider/provider.go:61	Configuration references unset environment variable	{"name": "MISSING_ENV_VAR"}
Error: failed to build pipelines: failed to create "otlphttp" exporter for data type "traces": endpoint must be a valid URL
2025/05/22 17:25:30 collector server run finished with error: failed to build pipelines: failed to create "otlphttp" exporter for data type "traces": endpoint must be a valid URL
```

Proof that the error log exported: 

![image](https://github.com/user-attachments/assets/09ea7f06-bae1-41b8-ad8f-b286bf18e2b5)
2025-05-27 16:07:25 +00:00
Alex Boten 657abbef9c
[chore] bump subset of otel-go-contrib packages (#13103)
This bumps all but the otelconf package. Part of
https://github.com/open-telemetry/opentelemetry-collector/pull/13098 and
unblocks
https://github.com/open-telemetry/opentelemetry-collector/pull/13088

---------

Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-05-27 16:05:03 +00:00
Alex Boten e238a8b2bd
[chore] update release schedule (#13102)
Also added a link to the workflow in the releases repo.

Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-05-27 15:43:33 +00:00
Eric St-Pierre 24a0a492fa
[chore] docs: clarify comment for NewFactory in debugexporter (first contribution) (#13086)
This is my first contribution to OpenTelemetry Collector. I am learning
the contribution process and wanted to start with a simple documentation
improvement.

- Clarified the GoDoc comment for the NewFactory function in
exporter/debugexporter/factory.go.

  Thank you for the opportunity to contribute!
2025-05-27 15:25:49 +00:00
renovate[bot] 392b705719
Update opentelemetry-go monorepo (#13099)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[go.opentelemetry.io/otel](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.35.0` -> `v1.36.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel/v1.36.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fotel/v1.36.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fotel/v1.35.0/v1.36.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fotel/v1.35.0/v1.36.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/log](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v0.11.0` -> `v0.12.2` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2flog/v0.12.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fotel%2flog/v0.12.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fotel%2flog/v0.11.0/v0.12.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fotel%2flog/v0.11.0/v0.12.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/metric](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.35.0` -> `v1.36.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fmetric/v1.36.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fotel%2fmetric/v1.36.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fotel%2fmetric/v1.35.0/v1.36.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fotel%2fmetric/v1.35.0/v1.36.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/sdk](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.35.0` -> `v1.36.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fsdk/v1.36.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fotel%2fsdk/v1.36.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fotel%2fsdk/v1.35.0/v1.36.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fotel%2fsdk/v1.35.0/v1.36.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/sdk/metric](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.35.0` -> `v1.36.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fsdk%2fmetric/v1.36.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fotel%2fsdk%2fmetric/v1.36.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fotel%2fsdk%2fmetric/v1.35.0/v1.36.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fotel%2fsdk%2fmetric/v1.35.0/v1.36.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/trace](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.35.0` -> `v1.36.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2ftrace/v1.36.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fotel%2ftrace/v1.36.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fotel%2ftrace/v1.35.0/v1.36.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fotel%2ftrace/v1.35.0/v1.36.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-go
(go.opentelemetry.io/otel)</summary>

###
[`v1.36.0`](https://redirect.github.com/open-telemetry/opentelemetry-go/releases/tag/v1.36.0):
/v0.58.0/v0.12.0

[Compare
Source](https://redirect.github.com/open-telemetry/opentelemetry-go/compare/v1.35.0...v1.36.0)

##### Added

- Add exponential histogram support in
`go.opentelemetry.io/otel/exporters/prometheus`.
([#&#8203;6421](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6421))
-   The `go.opentelemetry.io/otel/semconv/v1.31.0` package.
The package contains semantic conventions from the `v1.31.0` version of
the OpenTelemetry Semantic Conventions.
See the [migration documentation](./semconv/v1.31.0/MIGRATION.md) for
information on how to upgrade from
`go.opentelemetry.io/otel/semconv/v1.30.0`.
([#&#8203;6479](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6479))
- Add `Recording`, `Scope`, and `Record` types in
`go.opentelemetry.io/otel/log/logtest`.
([#&#8203;6507](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6507))
- Add `WithHTTPClient` option to configure the `http.Client` used by
`go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp`.
([#&#8203;6751](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6751))
- Add `WithHTTPClient` option to configure the `http.Client` used by
`go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp`.
([#&#8203;6752](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6752))
- Add `WithHTTPClient` option to configure the `http.Client` used by
`go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp`.
([#&#8203;6688](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6688))
- Add `ValuesGetter` in `go.opentelemetry.io/otel/propagation`, a
`TextMapCarrier` that supports retrieving multiple values for a single
key.
([#&#8203;5973](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5973))
- Add `Values` method to `HeaderCarrier` to implement the new
`ValuesGetter` interface in `go.opentelemetry.io/otel/propagation`.
([#&#8203;5973](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5973))
- Update `Baggage` in `go.opentelemetry.io/otel/propagation` to retrieve
multiple values for a key when the carrier implements `ValuesGetter`.
([#&#8203;5973](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5973))
- Add `AssertEqual` function in `go.opentelemetry.io/otel/log/logtest`.
([#&#8203;6662](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6662))
-   The `go.opentelemetry.io/otel/semconv/v1.32.0` package.
The package contains semantic conventions from the `v1.32.0` version of
the OpenTelemetry Semantic Conventions.
See the [migration documentation](./semconv/v1.32.0/MIGRATION.md) for
information on how to upgrade from
`go.opentelemetry.io/otel/semconv/v1.31.0`([#&#8203;6782](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6782))
- Add `Transform` option in `go.opentelemetry.io/otel/log/logtest`.
([#&#8203;6794](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6794))
- Add `Desc` option in `go.opentelemetry.io/otel/log/logtest`.
([#&#8203;6796](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6796))

##### Removed

- Drop support for \[Go 1.22].
([#&#8203;6381](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6381),
[#&#8203;6418](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6418))
- Remove `Resource` field from `EnabledParameters` in
`go.opentelemetry.io/otel/sdk/log`.
([#&#8203;6494](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6494))
- Remove `RecordFactory` type from
`go.opentelemetry.io/otel/log/logtest`.
([#&#8203;6492](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6492))
- Remove `ScopeRecords`, `EmittedRecord`, and `RecordFactory` types from
`go.opentelemetry.io/otel/log/logtest`.
([#&#8203;6507](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6507))
- Remove `AssertRecordEqual` function in
`go.opentelemetry.io/otel/log/logtest`, use `AssertEqual` instead.
([#&#8203;6662](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6662))

##### Changed

- ⚠️ Update `github.com/prometheus/client_golang` to `v1.21.1`, which
changes the `NameValidationScheme` to `UTF8Validation`.
This allows metrics names to keep original delimiters (e.g. `.`), rather
than replacing with underscores.
This can be reverted by setting
`github.com/prometheus/common/model.NameValidationScheme` to
`LegacyValidation` in `github.com/prometheus/common/model`.
([#&#8203;6433](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6433))
- Initialize map with `len(keys)` in `NewAllowKeysFilter` and
`NewDenyKeysFilter` to avoid unnecessary allocations in
`go.opentelemetry.io/otel/attribute`.
([#&#8203;6455](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6455))
- `go.opentelemetry.io/otel/log/logtest` is now a separate Go module.
([#&#8203;6465](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6465))
- `go.opentelemetry.io/otel/sdk/log/logtest` is now a separate Go
module.
([#&#8203;6466](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6466))
- `Recorder` in `go.opentelemetry.io/otel/log/logtest` no longer
separately stores records emitted by loggers with the same
instrumentation scope.
([#&#8203;6507](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6507))
- Improve performance of `BatchProcessor` in
`go.opentelemetry.io/otel/sdk/log` by not exporting when exporter cannot
accept more.
([#&#8203;6569](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6569),
[#&#8203;6641](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6641))

##### Deprecated

- Deprecate support for `model.LegacyValidation` for
`go.opentelemetry.io/otel/exporters/prometheus`.
([#&#8203;6449](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6449))

##### Fixes

- Stop percent encoding header environment variables in
`go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc` and
`go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp`.
([#&#8203;6392](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6392))
- Ensure the `noopSpan.tracerProvider` method is not inlined in
`go.opentelemetry.io/otel/trace` so the `go.opentelemetry.io/auto`
instrumentation can instrument non-recording spans.
([#&#8203;6456](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6456))
- Use a `sync.Pool` instead of allocating `metricdata.ResourceMetrics`
in `go.opentelemetry.io/otel/exporters/prometheus`.
([#&#8203;6472](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6472))

</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:eyJjcmVhdGVkSW5WZXIiOiI0MC4xNi4wIiwidXBkYXRlZEluVmVyIjoiNDAuMTYuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIiwicmVub3ZhdGVib3QiXX0=-->

---------

Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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: Alex Boten <223565+codeboten@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-05-27 09:15:23 +00:00
renovate[bot] 139aee453c
Update module google.golang.org/grpc to v1.72.2 (#13097)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [google.golang.org/grpc](https://redirect.github.com/grpc/grpc-go) |
`v1.72.1` -> `v1.72.2` |
[![age](https://developer.mend.io/api/mc/badges/age/go/google.golang.org%2fgrpc/v1.72.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/google.golang.org%2fgrpc/v1.72.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/google.golang.org%2fgrpc/v1.72.1/v1.72.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/google.golang.org%2fgrpc/v1.72.1/v1.72.2?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>grpc/grpc-go (google.golang.org/grpc)</summary>

###
[`v1.72.2`](https://redirect.github.com/grpc/grpc-go/compare/v1.72.1...v1.72.2)

[Compare
Source](https://redirect.github.com/grpc/grpc-go/compare/v1.72.1...v1.72.2)

</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:eyJjcmVhdGVkSW5WZXIiOiI0MC4xNi4wIiwidXBkYXRlZEluVmVyIjoiNDAuMTYuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIiwicmVub3ZhdGVib3QiXX0=-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
2025-05-27 04:55:22 +00:00
Alex Boten d754d3a287
[chore] fix release-branch script (#13096)
This script was referencing an env var that wasn't set anywhere

Fixes #13095

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2025-05-26 22:56:32 +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
Bogdan Drutu 249e5d55ad
[pipeline] Dreprecate MustNewID and MustNewIDWithName (#12835)
Updates
https://github.com/open-telemetry/opentelemetry-collector/issues/12831

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2025-05-26 14:11:50 +00:00
curtrika 59a11661ea
Remove false positive cspell exceptions (#13057)
We introduced cspell in #12671 and generated a cspell.json file for
customized spelling. However, this configuration was automatically
generated based on the state of the repo at the time. As a result, the
file still contains several typos. It's advisable to review the
configuration and remove any incorrect spellings.

examples: #12892 , #12897 , #13049

#### Description
Deleted multiple typos in the cspell.json configuration file that were
incorrectly marked as valid spellings.
Also fixed these typos in the corresponding code and documentation files
where they appeared.
The corrections include:
- Jaegar → Jaeger
- cofig → config
- componentest → component test
- consumereerrorprofiles → consumer error profiles
- enadled → enabled
- fluentfoward → fluentforward
- htttp → http
- identfier → identifier
- jaegar → jaeger
- lables → labels
- mininum → minimum
- repeate → repeat

#### Link to tracking issue
Fixes #13054

#### Testing
1. All corrected spellings are now properly flagged by cspell
2. The changes don't break any existing functionality
3. Special attention should be paid to changes in:
- receiver/otlpreceiver/testdata/typo_default_proto_config.yaml
- receiver/otlpreceiver/config_test.go 
where "htttp" was corrected to "http"

#### Documentation
Updated relevant documentation where these terms appeared with incorrect
spelling.
2025-05-26 06:14:59 +00:00
Chao Weng 58e643b411
[cmd/mdatagen] Add definition of `events` to `metadata-schema.yaml` (#13058)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Add definition of `events` to `metadata-schema.yaml`

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

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

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

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

---------

Co-authored-by: Dmitry Anoshin <anoshindx@gmail.com>
2025-05-23 13:43:36 +00:00
Tim Rühsen 749f997fa8
Introduce pprofile.PutAttribute helper (#12798)
#### Description
This introduces the `pprofile.PutAttribute()` helper method so profile
extensions can modify attributes.

It replaces the yet unused `pprofile.AddAttribute()` function, as `Add`
doesn't resonate well with the `pcommon.Map` `Put*` functions.

Additionally, the `PutAttributes()` helper takes into account the map
k/v nature of attributes, while `AddAttributes()` didn't do this.

#### Testing
```
goos: linux
goarch: amd64
pkg: go.opentelemetry.io/collector/pdata/pprofile
cpu: 12th Gen Intel(R) Core(TM) i7-12800H
                                                          │   old.txt   │      new.txt       │
                                                          │   sec/op    │   sec/op     vs base   │
AddAttribute/with_a_new_string_attribute-20                 27.66n ± 3%
AddAttribute/with_an_existing_attribute-20                  27.18n ± 4%
AddAttribute/with_a_duplicate_attribute-20                  27.18n ± 2%
AddAttribute/with_a_hundred_attributes_to_loop_through-20   103.0n ± 4%
PutAttribute/with_a_new_string_attribute-20                               27.71n ± 2%
PutAttribute/with_an_existing_attribute-20                                28.14n ± 1%
PutAttribute/with_a_duplicate_attribute-20                                28.14n ± 2%
PutAttribute/with_a_hundred_attributes_to_loop_through-20                 28.15n ± 2%
geomean                                                     38.08n        28.04n       ? ¹ ²
¹ benchmark set differs from baseline; geomeans may not be comparable
² ratios must be >0 to compute geomean

                                                          │  old.txt   │      new.txt      │
                                                          │    B/op    │    B/op     vs base   │
AddAttribute/with_a_new_string_attribute-20                 16.00 ± 0%
AddAttribute/with_an_existing_attribute-20                  16.00 ± 0%
AddAttribute/with_a_duplicate_attribute-20                  16.00 ± 0%
AddAttribute/with_a_hundred_attributes_to_loop_through-20   16.00 ± 0%
PutAttribute/with_a_new_string_attribute-20                              16.00 ± 0%
PutAttribute/with_an_existing_attribute-20                               16.00 ± 0%
PutAttribute/with_a_duplicate_attribute-20                               16.00 ± 0%
PutAttribute/with_a_hundred_attributes_to_loop_through-20                16.00 ± 0%
geomean                                                     16.00        16.00       ? ¹ ²
¹ benchmark set differs from baseline; geomeans may not be comparable
² ratios must be >0 to compute geomean

                                                          │  old.txt   │      new.txt      │
                                                          │ allocs/op  │ allocs/op   vs base   │
AddAttribute/with_a_new_string_attribute-20                 1.000 ± 0%
AddAttribute/with_an_existing_attribute-20                  1.000 ± 0%
AddAttribute/with_a_duplicate_attribute-20                  1.000 ± 0%
AddAttribute/with_a_hundred_attributes_to_loop_through-20   1.000 ± 0%
PutAttribute/with_a_new_string_attribute-20                              1.000 ± 0%
PutAttribute/with_an_existing_attribute-20                               1.000 ± 0%
PutAttribute/with_a_duplicate_attribute-20                               1.000 ± 0%
PutAttribute/with_a_hundred_attributes_to_loop_through-20                1.000 ± 0%
geomean                                                     1.000        1.000       ? ¹ ²
¹ benchmark set differs from baseline; geomeans may not be comparable
² ratios must be >0 to compute geomean
```

See also #12390

---------

Co-authored-by: Damien Mathieu <42@dmathieu.com>
2025-05-23 13:19:53 +00:00