1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-08-10 22:31:50 +02:00
Commit Graph

3783 Commits

Author SHA1 Message Date
renovate[bot]
850de675f4 fix(deps): update module google.golang.org/grpc to v1.74.2 (#7073)
This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
| [google.golang.org/grpc](https://redirect.github.com/grpc/grpc-go) |
`v1.73.0` -> `v1.74.2` |
[![age](https://developer.mend.io/api/mc/badges/age/go/google.golang.org%2fgrpc/v1.74.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/google.golang.org%2fgrpc/v1.73.0/v1.74.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.74.2`](https://redirect.github.com/grpc/grpc-go/releases/tag/v1.74.2):
Release 1.74.2

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

### API Changes

- balancer: add `ExitIdle` method to `Balancer` interface. Earlier,
implementing this method was optional.
([#&#8203;8367](https://redirect.github.com/grpc/grpc-go/issues/8367))

### Behavior Changes

- xds: Remove the `GRPC_EXPERIMENTAL_ENABLE_LEAST_REQUEST` environment
variable that allows disabling the least request balancer with xDS.
Least request was made available by default with xDS in v1.72.0.
([#&#8203;8248](https://redirect.github.com/grpc/grpc-go/issues/8248))
- Special Thanks:
[@&#8203;atollena](https://redirect.github.com/atollena)
- server: allow 0s grpc-timeout header values, which older gRPC-Java
versions could send. This restores the behavior of grpc-go before
v1.73.0.
([#&#8203;8439](https://redirect.github.com/grpc/grpc-go/issues/8439))

### Bug Fixes

- googledirectpath: avoid logging the error message `Attempt to set a
bootstrap configuration...` when creating multiple directpath channels.
([#&#8203;8419](https://redirect.github.com/grpc/grpc-go/issues/8419))

### Performance Improvements

- transport: reduce heap allocations by pooling objects and avoiding
method-to-closure conversions.
([#&#8203;8361](https://redirect.github.com/grpc/grpc-go/issues/8361))
- transport: reduce heap allocations by re-using `mem.Reader` objects.
([#&#8203;8360](https://redirect.github.com/grpc/grpc-go/issues/8360))

### Documentation

- examples: add examples to demonstrate enabling experimental metrics
using the OpenTelemetry plugin.
([#&#8203;8388](https://redirect.github.com/grpc/grpc-go/issues/8388))
- Special Thanks:
[@&#8203;vinothkumarr227](https://redirect.github.com/vinothkumarr227)

###
[`v1.74.1`](https://redirect.github.com/grpc/grpc-go/releases/tag/v1.74.1):
Release 1.74.1

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

Version 1.74.1 retracts release v1.74.0 and itself. Release 1.74.0 was
accidentally tagged on the wrong commit and should not be used. Version
1.73.0 should be used until 1.74.2 is released.

###
[`v1.74.0`](https://redirect.github.com/grpc/grpc-go/releases/tag/v1.74.0):
Release 1.74.0

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

Release 1.74.0 was accidentally tagged on the wrong commit and should
not be used. Version 1.73.0 should be used until 1.74.1 is released.

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about 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-go).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-22 15:06:52 -07:00
renovate[bot]
0ec3518cc4 chore(deps): update module github.com/ldez/grignotin to v0.10.0 (#7072)
This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
|
[github.com/ldez/grignotin](https://redirect.github.com/ldez/grignotin)
| `v0.9.0` -> `v0.10.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fldez%2fgrignotin/v0.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fldez%2fgrignotin/v0.9.0/v0.10.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>ldez/grignotin (github.com/ldez/grignotin)</summary>

###
[`v0.10.0`](https://redirect.github.com/ldez/grignotin/compare/v0.9.0...v0.10.0)

[Compare
Source](https://redirect.github.com/ldez/grignotin/compare/v0.9.0...v0.10.0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR is behind base branch, 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-go).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-22 14:27:40 -07:00
Robert Pająk
186def7c56 sdk/trace: self-observability: span metrics (#7027)
Fixes https://github.com/open-telemetry/opentelemetry-go/issues/7003

Implement following self-observability metrics from
https://github.com/open-telemetry/semantic-conventions/blob/v1.36.0/docs/otel/sdk-metrics.md
for https://pkg.go.dev/go.opentelemetry.io/otel/sdk/trace:
- `otel.sdk.span.live`
- `otel.sdk.span.started`
2025-07-22 11:36:06 +02:00
Tyler Yahn
3e440ba5b2 Fix markdown-fail-fast on push (#7057)
The [recent fix for the markdown-fail-fast
action](https://github.com/open-telemetry/opentelemetry-go/pull/7045)
fixed the action for PRs, but [pushes to `main` are
failing](https://github.com/open-telemetry/opentelemetry-go/actions/runs/16420891372/job/46398868230).

This fixes the action to run on pushes to main.

- Match markdown files using action `on` syntax to skip unneeded runs
- Parse event type in script
- Handle push event types in script

Co-authored-by: Damien Mathieu <42@dmathieu.com>
2025-07-22 11:03:59 +02:00
renovate[bot]
784f637100 chore(deps): update python:3.13.5-slim-bullseye docker digest to 17c88fd (#7062)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| python | stage | digest | `89aa817` -> `17c88fd` |

---

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

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR is behind base branch, 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-go).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-22 09:43:27 +02:00
renovate[bot]
de3f18ef0b chore(deps): update python:3.13.5-slim-bullseye docker digest to 89aa817 (#7061)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| python | stage | digest | `631af3f` -> `89aa817` |

---

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

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR is behind base branch, 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-go).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-22 09:17:56 +02:00
renovate[bot]
42f01eab13 chore(deps): update module github.com/securego/gosec/v2 to v2.22.7 (#7059)
This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
|
[github.com/securego/gosec/v2](https://redirect.github.com/securego/gosec)
| `v2.22.6` -> `v2.22.7` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fsecurego%2fgosec%2fv2/v2.22.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fsecurego%2fgosec%2fv2/v2.22.6/v2.22.7?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>securego/gosec (github.com/securego/gosec/v2)</summary>

###
[`v2.22.7`](https://redirect.github.com/securego/gosec/releases/tag/v2.22.7)

[Compare
Source](https://redirect.github.com/securego/gosec/compare/v2.22.6...v2.22.7)

#### Changelog

-
[`32975f4`](32975f4bab)
Fix crash in hardcoded\_nonce analyzer
-
[`6ea6b35`](6ea6b35e61)
Update go action to use release v2.22.6

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR is behind base branch, 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-go).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-21 16:07:19 -07:00
renovate[bot]
ae4d9e0e08 fix(deps): update module github.com/golangci/golangci-lint/v2 to v2.3.0 (#7060)
This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
|
[github.com/golangci/golangci-lint/v2](https://redirect.github.com/golangci/golangci-lint)
| `v2.2.2` -> `v2.3.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fgolangci%2fgolangci-lint%2fv2/v2.3.0?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.2.2/v2.3.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>golangci/golangci-lint
(github.com/golangci/golangci-lint/v2)</summary>

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

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

1. Linters new features or changes
- `ginkgolinter`: from 0.19.1 to 0.20.0 (new option:
`force-assertion-description`)
   - `iface`: from 1.4.0 to 1.4.1 (report message improvements)
- `noctx`: from 0.3.4 to 0.3.5 (new detections: `log/slog`, `exec`,
`crypto/tls`)
   - `revive`: from 1.10.0 to 1.11.0 (new rule: `enforce-switch-style`)
   - `wsl`: from 5.0.0 to 5.1.0
2. Linters bug fixes
   - `gosec`: from 2.22.5 to 2.22.6
   - `noinlineerr`: from 1.0.4 to 1.0.5
   - `sloglint`: from 0.11.0 to 0.11.1
3. Misc.
   - fix: panic close of closed channel

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR is behind base branch, 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-go).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-21 14:18:38 -07:00
renovate[bot]
079d11e8fa chore(deps): update github/codeql-action action to v3.29.3 (#7055)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[github/codeql-action](https://redirect.github.com/github/codeql-action)
| action | patch | `v3.29.2` -> `v3.29.3` |

---

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

---

### Release Notes

<details>
<summary>github/codeql-action (github/codeql-action)</summary>

###
[`v3.29.3`](https://redirect.github.com/github/codeql-action/releases/tag/v3.29.3)

[Compare
Source](https://redirect.github.com/github/codeql-action/compare/v3.29.2...v3.29.3)

### CodeQL Action Changelog

See the [releases
page](https://redirect.github.com/github/codeql-action/releases) for the
relevant changes to the CodeQL CLI and language packs.

#### 3.29.3 - 21 Jul 2025

No user facing changes.

See the full
[CHANGELOG.md](https://redirect.github.com/github/codeql-action/blob/v3.29.3/CHANGELOG.md)
for more information.

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR is behind base branch, 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-go).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-21 13:37:18 -07:00
renovate[bot]
65d31c56f8 fix(deps): update googleapis to a45f3df (#7058)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[google.golang.org/genproto/googleapis/api](https://redirect.github.com/googleapis/go-genproto)
| indirect | digest | `7130f93` -> `a45f3df` |
|
[google.golang.org/genproto/googleapis/rpc](https://redirect.github.com/googleapis/go-genproto)
| indirect | digest | `7130f93` -> `a45f3df` |
|
[google.golang.org/genproto/googleapis/rpc](https://redirect.github.com/googleapis/go-genproto)
| require | digest | `7130f93` -> `a45f3df` |

---

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

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about 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-go).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-21 13:06:32 -07:00
renovate[bot]
e579390cf2 chore(deps): update golang.org/x/telemetry digest to 96f361d (#7054)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| golang.org/x/telemetry | indirect | digest | `8d8967a` -> `96f361d` |

---

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

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR is behind base branch, 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-go).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-21 12:51:39 -07:00
David Ashpole
fb73949695 Release exporters/prometheus/v0.59.1 (#7056)
Patch release for
https://github.com/open-telemetry/opentelemetry-go/issues/7039

### Changed

- Retract `v0.59.0` release of
`go.opentelemetry.io/otel/exporters/prometheus` module which appends
incorrect unit suffixes. (#7046)
- Change `go.opentelemetry.io/otel/exporters/prometheus` to no longer
deduplicate suffixes when UTF8 is enabled.
It is recommended to disable unit and counter suffixes in the exporter,
and manually add suffixes if you rely on the existing behavior. (#7044)

### Fixed

- Fix `go.opentelemetry.io/otel/exporters/prometheus` to properly handle
unit suffixes when the unit is in brackets.
  E.g. `{spans}`. (#7044)
exporters/prometheus/v0.59.1
2025-07-21 14:05:53 -04:00
David Ashpole
8e6e28f962 Migrate prometheus exporter to otlptranslator (#7044)
Fixes https://github.com/open-telemetry/opentelemetry-go/issues/7039
Fixes https://github.com/open-telemetry/opentelemetry-go/issues/6704

This uses the common prometheus/otlptranslator library to handle name
conversion. It was a little tricky to work around the fact that the
library only lets us configure whether all suffixes are added or not.
But we want to keep supporting WithoutUnit and WithoutCounterSuffixes
for a while longer. Those will eventually be deprecated and replaced
after
https://github.com/open-telemetry/opentelemetry-specification/pull/4533
is released.

We decided to go ahead with the changes despite it being a small
behavioral change when UTF8 is enabled. See:
https://github.com/prometheus/otlptranslator/issues/44 for the
rationale.

This adds a unit test to verify that it properly handles bracketed
units. The test fails on main with:

```
--- FAIL: TestPrometheusExporter (0.01s)
    --- FAIL: TestPrometheusExporter/counter_with_bracketed_unit (0.00s)
        exporter_test.go:646:
            	Error Trace:	/usr/local/google/home/dashpole/go/src/go.opentelemetry.io/opentelemetry-go/exporters/prometheus/exporter_test.go:646
            	Error:      	Received unexpected error:
            	            	-# HELP "foo_{spans}_total" a simple counter
            	            	-# TYPE "foo_{spans}_total" counter
            	            	-{"foo_{spans}_total",A="B",C="D",E="true",F="42",otel_scope_fizz="buzz",otel_scope_name="testmeter",otel_scope_schema_url="",otel_scope_version="v0.1.0"} 24.3
            	            	-{"foo_{spans}_total",A="D",C="B",E="true",F="42",otel_scope_fizz="buzz",otel_scope_name="testmeter",otel_scope_schema_url="",otel_scope_version="v0.1.0"} 5
            	            	+# HELP foo_total a simple counter
            	            	+# TYPE foo_total counter
            	            	+foo_total{A="B",C="D",E="true",F="42",otel_scope_fizz="buzz",otel_scope_name="testmeter",otel_scope_schema_url="",otel_scope_version="v0.1.0"} 24.3
            	            	+foo_total{A="D",C="B",E="true",F="42",otel_scope_fizz="buzz",otel_scope_name="testmeter",otel_scope_schema_url="",otel_scope_version="v0.1.0"} 5
            	            	 # HELP target_info Target metadata
            	            	 # TYPE target_info gauge
            	            	 target_info{"service.name"="prometheus_test","telemetry.sdk.language"="go","telemetry.sdk.name"="opentelemetry","telemetry.sdk.version"="latest"} 1

            	Test:       	TestPrometheusExporter/counter_with_bracketed_unit
2025/07/18 15:07:47 internal_logging.go:50: "msg"="Using existing type definition." "error"="instrument type conflict" "instrument"="foo_total" "existing"="COUNTER" "dropped"="GAUGE"
2025/07/18 15:07:47 internal_logging.go:50: "msg"="Using existing type definition." "error"="instrument type conflict" "instrument"="foo_bytes" "existing"="GAUGE" "dropped"="HISTOGRAM"
FAIL
FAIL	go.opentelemetry.io/otel/exporters/prometheus	0.054s
FAIL
```

cc @TylerHelmuth @ywwg @ArthurSens

---------

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
Co-authored-by: Robert Pająk <pellared@hotmail.com>
2025-07-21 11:58:28 -04:00
David Ashpole
f6b5fb98a5 Retract most recent prometheus exporter release (#7046)
Due to https://github.com/open-telemetry/opentelemetry-go/issues/7039.
2025-07-21 11:42:00 -04:00
Tyler Yahn
024ebcbd03 Fix markdown-fail-fast Get Changes step script (#7045)
This has been failing silently:
https://github.com/open-telemetry/opentelemetry-go/actions/runs/16361094932/job/46229000882

- Fix the variable handling
- Add debugging `echo`s
- Reduce permissions to minimum needed
2025-07-21 08:13:48 -07:00
Yevhenii Solomchenko
c23a0667de sdk/metric: Add WithCardinalityLimit option (#6996)
Fixes #6976
Towards #6887

## What

- A new configuration field for cardinality limits is added to the SDK.
- Users can set cardinality limits via code
- Default value of 0(no limit) is applied if no value is provided.
- Unit tests validate the configuration behavior. 

## Additional 

- Issue created regarding the missing environment variable for the
cardinality limit:
[opentelemetry-specification#4586](https://github.com/open-telemetry/opentelemetry-specification/issues/4586)

---------

Co-authored-by: Robert Pająk <pellared@hotmail.com>
Co-authored-by: Damien Mathieu <42@dmathieu.com>
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2025-07-21 10:45:48 +02:00
Tyler Yahn
ac860229c6 Revert grpc upgrade to v1.74.* (#7047)
Both releases have been retracted:

- [Retract v1.74.0 and
v1.74.1](https://github.com/grpc/grpc-go/pull/8456#top)
2025-07-21 10:30:57 +02:00
renovate[bot]
953934a749 chore(deps): update module github.com/alwxsin/noinlineerr to v1.0.5 (#7049)
This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
|
[github.com/AlwxSin/noinlineerr](https://redirect.github.com/AlwxSin/noinlineerr)
| `v1.0.4` -> `v1.0.5` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fAlwxSin%2fnoinlineerr/v1.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fAlwxSin%2fnoinlineerr/v1.0.4/v1.0.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>AlwxSin/noinlineerr (github.com/AlwxSin/noinlineerr)</summary>

###
[`v1.0.5`](https://redirect.github.com/AlwxSin/noinlineerr/releases/tag/v1.0.5)

[Compare
Source](https://redirect.github.com/AlwxSin/noinlineerr/compare/v1.0.4...v1.0.5)

#### Changelog

-
[`f97bbfd`](f97bbfdfc1)
fix false positive case when error is not handling in condition
-
[`2f59f10`](2f59f105d6)
Update README.md: Fix typos

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR is behind base branch, 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-go).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: dmathieu <42@dmathieu.com>
2025-07-21 10:10:07 +02:00
renovate[bot]
c8de7aa738 fix(deps): update golang.org/x to 645b1fa (#7048)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| golang.org/x/exp | require | digest | `542afb5` -> `645b1fa` |
| golang.org/x/exp/typeparams | indirect | digest | `542afb5` ->
`645b1fa` |

---

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

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR is behind base branch, 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-go).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-19 07:21:33 -07:00
renovate[bot]
bf570ac8ce fix(deps): update module google.golang.org/grpc to v1.74.1 (#7043)
This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
| [google.golang.org/grpc](https://redirect.github.com/grpc/grpc-go) |
`v1.74.0` -> `v1.74.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/google.golang.org%2fgrpc/v1.74.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/google.golang.org%2fgrpc/v1.74.0/v1.74.1?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.74.1`](https://redirect.github.com/grpc/grpc-go/releases/tag/v1.74.1):
Release 1.74.1

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

Version 1.74.1 retracts release v1.74.0 and itself. Release 1.74.0 was
accidentally tagged on the wrong commit and should not be used. Version
1.73.0 should be used until 1.74.2 is released.

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR is behind base branch, 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-go).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-17 19:58:16 -07:00
renovate[bot]
390402c6c6 fix(deps): update golang.org/x to 542afb5 (#7042)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| golang.org/x/exp | require | digest | `6ae5c78` -> `542afb5` |
| golang.org/x/exp/typeparams | indirect | digest | `6ae5c78` ->
`542afb5` |

---

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

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR is behind base branch, 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-go).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-17 16:37:55 -07:00
David Ashpole
6d9dfea837 Change generated semconv sdk queue metrics to observable (#7041)
And regenerate v1.36.0 semconv using `TAG=v1.36.0 make semconv-generate`

Fixes https://github.com/open-telemetry/opentelemetry-go/issues/7029
2025-07-17 18:20:51 +02:00
renovate[bot]
f6f6b42cfe chore(deps): update module github.com/spf13/pflag to v1.0.7 (#7040)
This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
| [github.com/spf13/pflag](https://redirect.github.com/spf13/pflag) |
`v1.0.6` -> `v1.0.7` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fspf13%2fpflag/v1.0.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fspf13%2fpflag/v1.0.6/v1.0.7?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>spf13/pflag (github.com/spf13/pflag)</summary>

###
[`v1.0.7`](https://redirect.github.com/spf13/pflag/releases/tag/v1.0.7)

[Compare
Source](https://redirect.github.com/spf13/pflag/compare/v1.0.6...v1.0.7)

#### What's Changed

- Fix defaultIsZeroValue check for generic Value types by
[@&#8203;MidnightRocket](https://redirect.github.com/MidnightRocket) in
[https://github.com/spf13/pflag/pull/422](https://redirect.github.com/spf13/pflag/pull/422)
- feat: Use structs for errors returned by pflag. by
[@&#8203;eth-p](https://redirect.github.com/eth-p) in
[https://github.com/spf13/pflag/pull/425](https://redirect.github.com/spf13/pflag/pull/425)
- Fix typos by [@&#8203;co63oc](https://redirect.github.com/co63oc) in
[https://github.com/spf13/pflag/pull/428](https://redirect.github.com/spf13/pflag/pull/428)
- fix [#&#8203;423](https://redirect.github.com/spf13/pflag/issues/423)
: Add helper function and some documentation to parse shorthand go test
flags. by [@&#8203;valdar](https://redirect.github.com/valdar) in
[https://github.com/spf13/pflag/pull/424](https://redirect.github.com/spf13/pflag/pull/424)
- add support equivalent to golang flag.TextVar(), also fixes the test
failure as described in
[#&#8203;368](https://redirect.github.com/spf13/pflag/issues/368) by
[@&#8203;hujun-open](https://redirect.github.com/hujun-open) in
[https://github.com/spf13/pflag/pull/418](https://redirect.github.com/spf13/pflag/pull/418)
- add support for Func() and BoolFunc()
[#&#8203;426](https://redirect.github.com/spf13/pflag/issues/426) by
[@&#8203;LeGEC](https://redirect.github.com/LeGEC) in
[https://github.com/spf13/pflag/pull/429](https://redirect.github.com/spf13/pflag/pull/429)
- fix: correct argument length check in FlagSet.Parse by
[@&#8203;ShawnJeffersonWang](https://redirect.github.com/ShawnJeffersonWang)
in
[https://github.com/spf13/pflag/pull/409](https://redirect.github.com/spf13/pflag/pull/409)
- fix usage message for func flags, fix arguments order by
[@&#8203;LeGEC](https://redirect.github.com/LeGEC) in
[https://github.com/spf13/pflag/pull/431](https://redirect.github.com/spf13/pflag/pull/431)
- Add support for time.Time flags by
[@&#8203;max-frank](https://redirect.github.com/max-frank) in
[https://github.com/spf13/pflag/pull/348](https://redirect.github.com/spf13/pflag/pull/348)

#### New Contributors

- [@&#8203;MidnightRocket](https://redirect.github.com/MidnightRocket)
made their first contribution in
[https://github.com/spf13/pflag/pull/422](https://redirect.github.com/spf13/pflag/pull/422)
- [@&#8203;eth-p](https://redirect.github.com/eth-p) made their first
contribution in
[https://github.com/spf13/pflag/pull/425](https://redirect.github.com/spf13/pflag/pull/425)
- [@&#8203;co63oc](https://redirect.github.com/co63oc) made their first
contribution in
[https://github.com/spf13/pflag/pull/428](https://redirect.github.com/spf13/pflag/pull/428)
- [@&#8203;valdar](https://redirect.github.com/valdar) made their first
contribution in
[https://github.com/spf13/pflag/pull/424](https://redirect.github.com/spf13/pflag/pull/424)
- [@&#8203;hujun-open](https://redirect.github.com/hujun-open) made
their first contribution in
[https://github.com/spf13/pflag/pull/418](https://redirect.github.com/spf13/pflag/pull/418)
- [@&#8203;LeGEC](https://redirect.github.com/LeGEC) made their first
contribution in
[https://github.com/spf13/pflag/pull/429](https://redirect.github.com/spf13/pflag/pull/429)
-
[@&#8203;ShawnJeffersonWang](https://redirect.github.com/ShawnJeffersonWang)
made their first contribution in
[https://github.com/spf13/pflag/pull/409](https://redirect.github.com/spf13/pflag/pull/409)
- [@&#8203;max-frank](https://redirect.github.com/max-frank) made their
first contribution in
[https://github.com/spf13/pflag/pull/348](https://redirect.github.com/spf13/pflag/pull/348)

**Full Changelog**:
https://github.com/spf13/pflag/compare/v1.0.6...v1.0.7

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR is behind base branch, 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-go).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-17 08:31:43 +02:00
renovate[bot]
d13f46b5b6 fix(deps): update module google.golang.org/grpc to v1.74.0 (#7038) 2025-07-17 07:59:50 +02:00
Tyler Yahn
5e212ba8c6 Generate semconv/v1.36.0 (#7032)
Resolve #7030 

This generation fixes the following:

- The `semconv/weaver.yaml` file is moved to the
`semconv/templates/registry/go` to [fix the
generation](https://github.com/open-telemetry/opentelemetry-go/issues/7030#issuecomment-3074916061).
- Deprecated enum `var`s are no longer generate.
- The deprecation of the previous `OSTypeZOS` (`z_os`) conflicts with
the replacement (`zos`).
- This matches all other generations where deprecated types are not
generated and the migration docs identify users need to upgrade when
upgrading packages.
- Fix metric description rendering to handle multi-line metric
descriptions.
- Fix filter of deprecated metrics in weaver configuration (see
https://github.com/open-telemetry/weaver/issues/847).

The release notes for v1.35.0 are included as we do not plan to add a
package for that release and it includes breaking changes being released
here (i.e. `az.namespace` and `az.service_request_id`)

## [`v1.36.0` semantic convention release
notes](https://github.com/open-telemetry/semantic-conventions/releases/tag/v1.36.0)

<div data-pjax="true" data-test-selector="body-content"
data-view-component="true" class="markdown-body my-3"><h3>🚩 Deprecations
🚩</h3>
<ul>
<li><code>os</code>: Adds the 'deprecated:' tag/attribute to the
<code>z_os</code> enum value of <code>os.type</code>. This value was
recently deprecated in v1.35.0. (<a
href="https://github.com/open-telemetry/semantic-conventions/issues/2479"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/semantic-conventions/pull/2479/hovercard"
aria-keyshortcuts="Alt+ArrowUp">#2479</a>)</li>
</ul>
<h3>💡 Enhancements 💡</h3>
<ul>
<li><code>otel</code>: Replaces <code>otel.sdk.span.ended</code> with
<code>otel.sdk.span.started</code> and allow differentiation based on
the parent span origin (<a
href="https://github.com/open-telemetry/semantic-conventions/issues/2431"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/semantic-conventions/pull/2431/hovercard"
aria-keyshortcuts="Alt+ArrowUp">#2431</a>)</li>
<li><code>db</code>: Add database context propagation via <code>SET
CONTEXT_INFO</code> for SQL Server (<a
href="https://github.com/open-telemetry/semantic-conventions/issues/2162"
data-hovercard-type="issue"
data-hovercard-url="/open-telemetry/semantic-conventions/issues/2162/hovercard"
aria-keyshortcuts="Alt+ArrowUp">#2162</a>)</li>
<li><code>entities</code>: Adds support for Entity registry and Entity
stabilization policies. (<a
href="https://github.com/open-telemetry/semantic-conventions/issues/2246"
data-hovercard-type="issue"
data-hovercard-url="/open-telemetry/semantic-conventions/issues/2246/hovercard"
aria-keyshortcuts="Alt+ArrowUp">#2246</a>)</li>
</ul>
<h3>🧰 Bug fixes 🧰</h3>
<ul>
<li><code>cloud</code>: Exclude deprecated Azure members from code
generation on the <code>cloud.platform</code> attribute (<a
href="https://github.com/open-telemetry/semantic-conventions/issues/2477"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/semantic-conventions/pull/2477/hovercard"
aria-keyshortcuts="Alt+ArrowUp">#2477</a>, <a
href="https://github.com/open-telemetry/semantic-conventions/issues/2455"
data-hovercard-type="issue"
data-hovercard-url="/open-telemetry/semantic-conventions/issues/2455/hovercard"
aria-keyshortcuts="Alt+ArrowUp">#2455</a>)</li>
</ul>

## [`v1.35.0` semantic convention release
notes](https://github.com/open-telemetry/semantic-conventions/releases/tag/v1.35.0)

<div data-pjax="true" data-test-selector="body-content"
data-view-component="true" class="markdown-body my-3"><h3>🛑 Breaking
changes 🛑</h3>
<ul>
<li>
<p><code>azure</code>: Align azure events, attributes, and enum members
with general naming guidelines. (<a
href="https://github.com/open-telemetry/semantic-conventions/issues/608"
data-hovercard-type="issue"
data-hovercard-url="/open-telemetry/semantic-conventions/issues/608/hovercard"
aria-keyshortcuts="Alt+ArrowUp">#608</a>, <a
href="https://github.com/open-telemetry/semantic-conventions/issues/1708"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/semantic-conventions/pull/1708/hovercard"
aria-keyshortcuts="Alt+ArrowUp">#1708</a>, <a
href="https://github.com/open-telemetry/semantic-conventions/issues/1698"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/semantic-conventions/pull/1698/hovercard"
aria-keyshortcuts="Alt+ArrowUp">#1698</a>)</p>
<ul>
<li>Renamed attributes:
<ul>
<li><code>az.service_request_id</code> to
<code>azure.service.request.id</code></li>
<li><code>az.namespace</code> to
<code>azure.resource_provider.namespace</code></li>
</ul>
</li>
<li>Renamed events:
<ul>
<li><code>az.resource.log</code> to <code>azure.resource.log</code></li>
</ul>
</li>
<li>Renamed enum members:
<ul>
<li><code>az.ai.inference</code> to <code>azure.ai.inference</code> (on
<code>gen_ai.system</code>)</li>
<li><code>az.ai.openai</code> to <code>azure.ai.openai</code> (on
<code>gen_ai.system</code>)</li>
<li><code>azure_aks</code> to <code>azure.aks</code> (on
<code>cloud.platform</code>)</li>
<li><code>azure_app_service</code> to <code>azure.app_service</code> (on
<code>cloud.platform</code>)</li>
<li><code>azure_container_apps</code> to
<code>azure.container_apps</code> (on <code>cloud.platform</code>)</li>
<li><code>azure_container_instances</code> to
<code>azure.container_instances</code> (on
<code>cloud.platform</code>)</li>
<li><code>azure_functions</code> to <code>azure.functions</code> (on
<code>cloud.platform</code>)</li>
<li><code>azure_openshift</code> to <code>azure.open_shift</code> (on
<code>cloud.platform</code>)</li>
<li><code>azure_vm</code> to <code>azure.vm</code> (on
<code>cloud.platform</code>)</li>
</ul>
</li>
</ul>
</li>
<li>
<p><code>system</code>: Revert the change that moved
<code>system.cpu.*</code> to <code>cpu.*</code>. The 3 affected metrics
are back in <code>system.cpu.*</code>. (<a
href="https://github.com/open-telemetry/semantic-conventions/issues/1873"
data-hovercard-type="issue"
data-hovercard-url="/open-telemetry/semantic-conventions/issues/1873/hovercard"
aria-keyshortcuts="Alt+ArrowUp">#1873</a>)</p>
</li>
<li>
<p><code>system</code>: Changes system.network.connections to
system.network.connection.count (<a
href="https://github.com/open-telemetry/semantic-conventions/issues/1800"
data-hovercard-type="issue"
data-hovercard-url="/open-telemetry/semantic-conventions/issues/1800/hovercard"
aria-keyshortcuts="Alt+ArrowUp">#1800</a>)</p>
</li>
<li>
<p><code>k8s</code>: Change instrument type for .limit/.request
container metrics from gauge to updowncounter (<a
href="https://github.com/open-telemetry/semantic-conventions/issues/2354"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/semantic-conventions/pull/2354/hovercard"
aria-keyshortcuts="Alt+ArrowUp">#2354</a>)</p>
</li>
</ul>
<h3>🚩 Deprecations 🚩</h3>
<ul>
<li><code>os</code>: Deprecate os.type='z_os' and replace with
os.type='zos' (<a
href="https://github.com/open-telemetry/semantic-conventions/issues/1687"
data-hovercard-type="issue"
data-hovercard-url="/open-telemetry/semantic-conventions/issues/1687/hovercard"
aria-keyshortcuts="Alt+ArrowUp">#1687</a>)</li>
</ul>
<h3>🚀 New components 🚀</h3>
<ul>
<li><code>mainframe, zos</code>: Add initial semantic conventions for
mainframes (<a
href="https://github.com/open-telemetry/semantic-conventions/issues/1687"
data-hovercard-type="issue"
data-hovercard-url="/open-telemetry/semantic-conventions/issues/1687/hovercard"
aria-keyshortcuts="Alt+ArrowUp">#1687</a>)</li>
</ul>
<h3>💡 Enhancements 💡</h3>
<ul>
<li>
<p><code>dotnet</code>: Define .NET-specific network spans for DNS
resolution, TLS handshake, and socket connections, along with HTTP-level
spans to (optionally) record relationships between HTTP requests and
connections.<br>
(<a
href="https://github.com/open-telemetry/semantic-conventions/issues/1192"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/semantic-conventions/pull/1192/hovercard"
aria-keyshortcuts="Alt+ArrowUp">#1192</a>)</p>
</li>
<li>
<p><code>k8s</code>: Add <code>k8s.node.allocatable.cpu</code>,
<code>k8s.node.allocatable.ephemeral_storage</code>,
<code>k8s.node.allocatable.memory</code>,
<code>k8s.node.allocatable.pods</code> metrics (<a
href="https://github.com/open-telemetry/semantic-conventions/issues/2243"
data-hovercard-type="issue"
data-hovercard-url="/open-telemetry/semantic-conventions/issues/2243/hovercard"
aria-keyshortcuts="Alt+ArrowUp">#2243</a>)</p>
</li>
<li>
<p><code>k8s</code>: Add k8s.container.restart.count metric (<a
href="https://github.com/open-telemetry/semantic-conventions/issues/2191"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/semantic-conventions/pull/2191/hovercard"
aria-keyshortcuts="Alt+ArrowUp">#2191</a>)</p>
</li>
<li>
<p><code>k8s</code>: Add K8s container resource related metrics (<a
href="https://github.com/open-telemetry/semantic-conventions/issues/2074"
data-hovercard-type="issue"
data-hovercard-url="/open-telemetry/semantic-conventions/issues/2074/hovercard"
aria-keyshortcuts="Alt+ArrowUp">#2074</a>)</p>
</li>
<li>
<p><code>k8s</code>: Add k8s.container.ready metric (<a
href="https://github.com/open-telemetry/semantic-conventions/issues/2074"
data-hovercard-type="issue"
data-hovercard-url="/open-telemetry/semantic-conventions/issues/2074/hovercard"
aria-keyshortcuts="Alt+ArrowUp">#2074</a>)</p>
</li>
<li>
<p><code>k8s</code>: Add k8s.node.condition metric (<a
href="https://github.com/open-telemetry/semantic-conventions/issues/2077"
data-hovercard-type="issue"
data-hovercard-url="/open-telemetry/semantic-conventions/issues/2077/hovercard"
aria-keyshortcuts="Alt+ArrowUp">#2077</a>)</p>
</li>
<li>
<p><code>k8s</code>: Add k8s resource quota metrics (<a
href="https://github.com/open-telemetry/semantic-conventions/issues/2076"
data-hovercard-type="issue"
data-hovercard-url="/open-telemetry/semantic-conventions/issues/2076/hovercard"
aria-keyshortcuts="Alt+ArrowUp">#2076</a>)</p>
</li>
<li>
<p><code>events</code>: Update general event guidance to allow complex
attributes on events and use them instead of the body fields.<br>
(<a
href="https://github.com/open-telemetry/semantic-conventions/issues/1651"
data-hovercard-type="issue"
data-hovercard-url="/open-telemetry/semantic-conventions/issues/1651/hovercard"
aria-keyshortcuts="Alt+ArrowUp">#1651</a>, <a
href="https://github.com/open-telemetry/semantic-conventions/issues/1669"
data-hovercard-type="issue"
data-hovercard-url="/open-telemetry/semantic-conventions/issues/1669/hovercard"
aria-keyshortcuts="Alt+ArrowUp">#1669</a>)</p>
</li>
<li>
<p><code>k8s</code>: Add k8s.container.status.state and
k8s.container.status.reason metrics (<a
href="https://github.com/open-telemetry/semantic-conventions/issues/1672"
data-hovercard-type="issue"
data-hovercard-url="/open-telemetry/semantic-conventions/issues/1672/hovercard"
aria-keyshortcuts="Alt+ArrowUp">#1672</a>)</p>
</li>
<li>
<p><code>feature_flags</code>: Mark feature flag semantic convention as
release candidate. (<a
href="https://github.com/open-telemetry/semantic-conventions/issues/2277"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/semantic-conventions/pull/2277/hovercard"
aria-keyshortcuts="Alt+ArrowUp">#2277</a>)</p>
</li>
<li>
<p><code>k8s</code>: Add new resource attributes for
<code>k8s.hpa</code> to capture the <code>scaleTargetRef</code> fields
(<a
href="https://github.com/open-telemetry/semantic-conventions/issues/2008"
data-hovercard-type="issue"
data-hovercard-url="/open-telemetry/semantic-conventions/issues/2008/hovercard"
aria-keyshortcuts="Alt+ArrowUp">#2008</a>)<br>
Adds below attributes to the <code>k8s.hpa</code> resource:</p>
<ul>
<li><code>k8s.hpa.scaletargetref.kind</code></li>
<li><code>k8s.hpa.scaletargetref.name</code></li>
<li><code>k8s.hpa.scaletargetref.api_version</code></li>
</ul>
</li>
<li>
<p><code>k8s</code>: Adds metrics and attributes to track k8s HPA's
metric target values for CPU resources. (<a
href="https://github.com/open-telemetry/semantic-conventions/issues/2182"
data-hovercard-type="issue"
data-hovercard-url="/open-telemetry/semantic-conventions/issues/2182/hovercard"
aria-keyshortcuts="Alt+ArrowUp">#2182</a>)<br>
Below metrics are introduced to provide insight into HPA scaling
configuration for CPU.</p>
<ul>
<li><code>k8s.hpa.metric.target.cpu.value</code></li>
<li><code>k8s.hpa.metric.target.cpu.average_value</code></li>
<li><code>k8s.hpa.metric.target.cpu.average_utilization</code></li>
</ul>
</li>
<li>
<p><code>k8s</code>: Explains the rationale behind the Kubernetes
resource naming convention. (<a
href="https://github.com/open-telemetry/semantic-conventions/issues/2245"
data-hovercard-type="issue"
data-hovercard-url="/open-telemetry/semantic-conventions/issues/2245/hovercard"
aria-keyshortcuts="Alt+ArrowUp">#2245</a>)</p>
</li>
<li>
<p><code>all</code>: Adds modelling guide for resource and entity. (<a
href="https://github.com/open-telemetry/semantic-conventions/issues/2246"
data-hovercard-type="issue"
data-hovercard-url="/open-telemetry/semantic-conventions/issues/2246/hovercard"
aria-keyshortcuts="Alt+ArrowUp">#2246</a>)</p>
</li>
<li>
<p><code>service</code>: Adds stability policies for Entity groups. (<a
href="https://github.com/open-telemetry/semantic-conventions/issues/2378"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/semantic-conventions/pull/2378/hovercard"
aria-keyshortcuts="Alt+ArrowUp">#2378</a>)<br>
Entity groups now require <code>role</code> to be filled for
attributes.</p>
</li>
<li>
<p><code>otel</code>: Specifies component.type values for Zipkin and
Prometheus exporters (<a
href="https://github.com/open-telemetry/semantic-conventions/issues/2229"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/semantic-conventions/pull/2229/hovercard"
aria-keyshortcuts="Alt+ArrowUp">#2229</a>)</p>
</li>
</ul>
<h3>🧰 Bug fixes 🧰</h3>
<ul>
<li><code>otel</code>: Removes <code>otel.scope</code> entity. (<a
href="https://github.com/open-telemetry/semantic-conventions/issues/2310"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/semantic-conventions/pull/2310/hovercard"
aria-keyshortcuts="Alt+ArrowUp">#2310</a>)</li>
</ul>
2025-07-16 13:33:34 -07:00
Robert Pająk
a6782b9ca9 sdk/trace: remove unused version function (#7036)
The unexported `version()` function in `sdk/trace` is not used anywhere.
Not mentioning that the value it is returning is wrong.

There is already a `Version` function in `sdk` (which is in the same Go
module).
2025-07-16 20:24:48 +02:00
renovate[bot]
0485596876 fix(deps): update googleapis to 7130f93 (#7033) 2025-07-16 09:08:50 +02:00
renovate[bot]
826a8ec2ed chore(deps): update module github.com/go-viper/mapstructure/v2 to v2.4.0 (#7028)
This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
|
[github.com/go-viper/mapstructure/v2](https://redirect.github.com/go-viper/mapstructure)
| `v2.3.0` -> `v2.4.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fgo-viper%2fmapstructure%2fv2/v2.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fgo-viper%2fmapstructure%2fv2/v2.3.0/v2.4.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>go-viper/mapstructure
(github.com/go-viper/mapstructure/v2)</summary>

###
[`v2.4.0`](https://redirect.github.com/go-viper/mapstructure/releases/tag/v2.4.0)

[Compare
Source](https://redirect.github.com/go-viper/mapstructure/compare/v2.3.0...v2.4.0)

#### What's Changed

- refactor: replace interface{} with any by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/go-viper/mapstructure/pull/115](https://redirect.github.com/go-viper/mapstructure/pull/115)
- build(deps): bump github/codeql-action from 3.29.0 to 3.29.2 by
[@&#8203;dependabot](https://redirect.github.com/dependabot)\[bot]
in[https://github.com/go-viper/mapstructure/pull/114](https://redirect.github.com/go-viper/mapstructure/pull/114)4
- Generic tests by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/go-viper/mapstructure/pull/118](https://redirect.github.com/go-viper/mapstructure/pull/118)
- Fix godoc reference link in README.md by
[@&#8203;peczenyj](https://redirect.github.com/peczenyj) in
[https://github.com/go-viper/mapstructure/pull/107](https://redirect.github.com/go-viper/mapstructure/pull/107)
- feat: add StringToTimeLocationHookFunc to convert strings to
\*time.Location by
[@&#8203;ErfanMomeniii](https://redirect.github.com/ErfanMomeniii) in
[https://github.com/go-viper/mapstructure/pull/117](https://redirect.github.com/go-viper/mapstructure/pull/117)
- feat: add back previous StringToSlice as a weak function by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/go-viper/mapstructure/pull/119](https://redirect.github.com/go-viper/mapstructure/pull/119)

#### New Contributors

- [@&#8203;ErfanMomeniii](https://redirect.github.com/ErfanMomeniii)
made their first contribution in
[https://github.com/go-viper/mapstructure/pull/117](https://redirect.github.com/go-viper/mapstructure/pull/117)

**Full Changelog**:
https://github.com/go-viper/mapstructure/compare/v2.3.0...v2.4.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR is behind base branch, 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-go).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-15 19:05:47 +02:00
arjun
291140b0d8 log: Add Record.Clone (#7001)
Fixes #6986

This PR adds a `Clone()` method to the `log.Record` type.

The `Clone` method returns a copy of the record with no shared state,
allowing both the original and the clone to be modified independently.

This functionality mirrors the existing `sdk/log.Record.Clone()`
behavior and includes a corresponding unit test (`TestRecordClone`) to
ensure correctness.

---------

Co-authored-by: Robert Pająk <pellared@hotmail.com>
2025-07-15 09:50:43 +02:00
renovate[bot]
55d2e69a7b fix(deps): update module go.opentelemetry.io/collector/pdata to v1.36.0 (#7024)
This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
|
[go.opentelemetry.io/collector/pdata](https://redirect.github.com/open-telemetry/opentelemetry-collector)
| `v1.35.0` -> `v1.36.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fcollector%2fpdata/v1.36.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fcollector%2fpdata/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-collector
(go.opentelemetry.io/collector/pdata)</summary>

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

##### 🛑 Breaking changes 🛑

- `exporter/otlp`: Remove deprecated batcher config from OTLP, use
queuebatch
([#&#8203;13339](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/13339))

##### 💡 Enhancements 💡

- `exporterhelper`: Enable items and bytes sizers for persistent queue
([#&#8203;12881](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/12881))
- `exporterhelper`: Refactor persistent storage size backup to always
record it.
([#&#8203;12890](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/12890))
- `exporterhelper`: Add support to configure a different Sizer for the
batcher than the queue
([#&#8203;13313](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/13313))
- `yaml`: Replaced `sigs.k8s.io/yaml` with `go.yaml.in/yaml` for
improved support and long-term maintainability.
([#&#8203;13308](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/13308))

##### 🧰 Bug fixes 🧰

- `exporterhelper`: Fix exporter.PersistRequestContext feature gate
([#&#8203;13342](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/13342))

- `exporterhelper`: Preserve all metrics metadata when batch splitting.
([#&#8203;13236](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/13236))
Previously, when large batches of metrics were processed, the splitting
logic in `metric_batch.go` could
cause the `name` field of some metrics to disappear. This fix ensures
that all metric fields are
  properly preserved when `metricRequest` objects are split.

- `service`: Default internal metrics config now enables `otel_scope_`
labels
([#&#8203;12939](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/12939),
[#&#8203;13344](https://redirect.github.com/open-telemetry/opentelemetry-collector/issues/13344))
By default, the Collector exports its internal metrics using a
Prometheus
exporter from the opentelemetry-go repository. With this change, the
Collector
  no longer sets "without\_scope\_info" to true in its configuration.

  This means that all exported metrics will have `otel_scope_name`,
`otel_scope_schema_url`, and `otel_scope_version` labels corresponding
to the
  instrumentation scope metadata for that metric.

This notably prevents an error when multiple metrics are only
distinguished
  by their instrumentation scopes and end up aliased during export.

If this is not desired behavior, a Prometheus exporter can be explicitly
  configured with this option enabled.

<!-- previous-version -->

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR is behind base branch, 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-go).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-15 07:36:40 +02:00
Robert Pająk
ca02873ee4 docs: Add Go Code Review Comments and allow the use of testify (#6984)
Inspired by
https://github.com/open-telemetry/opentelemetry-go-contrib/pull/7522#discussion_r2190580677

I hope it will help new contributors. Also I want to codify that we are
OK when one uses `testify`, but I do not also want to force it (e.g.
https://github.com/open-telemetry/opentelemetry-go-contrib/pull/7522 was
not using it).

I think that as long as we use the standard library, `testify`, `go-cmp`
we are fine (and should not accept any other libraries than those).
2025-07-14 15:45:42 -07:00
Matouš Dzivjak
c4b8e9124e chore(semconv): follow weaver folder structure (#6998)
(this PR is a suggestion, feel free to close if it doesn't align with
the vision for this repo)

Moves jinja templates for semantic conventions from the root of
`semconv/` into `semconv/templates/registry/go/`, making them easier to
consume. While this wasn't impeding development in `opentelemetry-go` it
makes it easier to consume the templates from other packages via:

```bash
weaver registry generate --templates https://github.com/open-telemetry/opentelemetry-go.git[semconv/templates] go .
```

which was previously impossible. Specific use-case would be using
[weaver](https://github.com/open-telemetry/weaver) to maintain private
registry of semantic conventions for companies/projects in which case
it's more convenient to be able to rely on the upstream opentelemetry-go
templates as opposed to having to copy them over.

Tested by running:

```bash
TAG='v1.34.0' make semconv-generate
```

which results into empty diff.

## Open questions

Does the changelog deserve an entry for this even without changes to the
API?

Co-authored-by: Robert Pająk <pellared@hotmail.com>
2025-07-14 07:24:33 -07:00
renovate[bot]
e6ba1ebfbd chore(deps): update module go-simpler.org/sloglint to v0.11.1 (#7000)
This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
|
[go-simpler.org/sloglint](https://redirect.github.com/go-simpler/sloglint)
| `v0.11.0` -> `v0.11.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go-simpler.org%2fsloglint/v0.11.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go-simpler.org%2fsloglint/v0.11.0/v0.11.1?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>go-simpler/sloglint (go-simpler.org/sloglint)</summary>

###
[`v0.11.1`](https://redirect.github.com/go-simpler/sloglint/releases/tag/v0.11.1)

[Compare
Source](https://redirect.github.com/go-simpler/sloglint/compare/v0.11.0...v0.11.1)

-
[`261065f`](https://redirect.github.com/go-simpler/sloglint/commit/261065f)
fix(static-msg): do not report constants defined in another file
([#&#8203;93](https://redirect.github.com/go-simpler/sloglint/issues/93))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR is behind base branch, 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-go).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-13 07:30:27 -07:00
renovate[bot]
96c8fafbe3 chore(deps): update module github.com/mgechev/revive to v1.11.0 (#6999) 2025-07-12 13:07:04 +02:00
renovate[bot]
027836cae1 fix(deps): update module github.com/golangci/golangci-lint/v2 to v2.2.2 (#6997)
This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
|
[github.com/golangci/golangci-lint/v2](https://redirect.github.com/golangci/golangci-lint)
| `v2.2.1` -> `v2.2.2` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fgolangci%2fgolangci-lint%2fv2/v2.2.2?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.2.1/v2.2.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>golangci/golangci-lint
(github.com/golangci/golangci-lint/v2)</summary>

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

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

1. Linters bug fixes
   - `noinlineerr`: from 1.0.3 to 1.0.4
2. Documentation
   - Improve debug keys documentation
3. Misc.
   - fix: panic close of closed channel
   - godot: add noinline value into the JSONSchema

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

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

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-11 15:38:45 -07:00
renovate[bot]
da66048a3f fix(deps): update golang.org/x (#6994)
This PR contains the following updates:

| Package | Change | Age | Confidence | Type | Update |
|---|---|---|---|---|---|
| golang.org/x/crypto | `v0.39.0` -> `v0.40.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fcrypto/v0.40.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fcrypto/v0.39.0/v0.40.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| indirect | minor |
| golang.org/x/exp | `b7579e2` -> `6ae5c78` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fexp/v0.0.0-20250711185948-6ae5c78190dc?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fexp/v0.0.0-20250620022241-b7579e27df2b/v0.0.0-20250711185948-6ae5c78190dc?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | digest |
| golang.org/x/exp/typeparams | `b7579e2` -> `6ae5c78` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fexp%2ftypeparams/v0.0.0-20250711185948-6ae5c78190dc?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fexp%2ftypeparams/v0.0.0-20250620022241-b7579e27df2b/v0.0.0-20250711185948-6ae5c78190dc?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| indirect | digest |
| golang.org/x/net | `v0.41.0` -> `v0.42.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fnet/v0.42.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fnet/v0.41.0/v0.42.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| indirect | minor |
| golang.org/x/tools | `v0.34.0` -> `v0.35.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2ftools/v0.35.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2ftools/v0.34.0/v0.35.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | minor |

---

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

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR is behind base branch, 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-go).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-11 15:14:48 -07:00
Joe Stephenson
5da6cd28a8 sdk/log: Add WithAllowKeyDuplication logger provider option (#6968)
Closes #5133 

This couldn't be added as an option on a processor, as that would
involve moving all the attribute deduplication. logic outside of the
record type. Instead this PR provides the same functionality but it is
set when creating the log provider

The below benchstat report shows the performance improvement when
`allowDupKeys` is set
```
goos: darwin
goarch: arm64
pkg: go.opentelemetry.io/otel/sdk/log
cpu: Apple M2 Pro
                                  │ withoutDedup.txt │            withDedup.txt            │
                                  │      sec/op      │   sec/op     vs base                │
SetAddAttributes/SetAttributes-12        141.3n ± 2%   167.4n ± 5%  +18.51% (p=0.000 n=10)
SetAddAttributes/AddAttributes-12        117.5n ± 2%   124.8n ± 5%   +6.17% (p=0.000 n=10)
geomean                                  128.9n        144.5n       +12.17%

                                  │ withoutDedup.txt │            withDedup.txt            │
                                  │       B/op       │    B/op     vs base                 │
SetAddAttributes/SetAttributes-12       48.00 ± 0%     48.00 ± 0%       ~ (p=1.000 n=10) ¹
SetAddAttributes/AddAttributes-12       0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
geomean                                            ²               +0.00%                ²
¹ all samples are equal
² summaries must be >0 to compute geomean

                                  │ withoutDedup.txt │            withDedup.txt            │
                                  │    allocs/op     │ allocs/op   vs base                 │
SetAddAttributes/SetAttributes-12       1.000 ± 0%     1.000 ± 0%       ~ (p=1.000 n=10) ¹
SetAddAttributes/AddAttributes-12       0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
geomean                                            ²               +0.00%                ²
¹ all samples are equal
² summaries must be >0 to compute geomean
```
2025-07-11 09:54:13 +02:00
renovate[bot]
e4c84b9ea6 chore(deps): update golang.org/x/telemetry digest to 8d8967a (#6990)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| golang.org/x/telemetry | indirect | digest | `9926bab` -> `8d8967a` |

---

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

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR is behind base branch, 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-go).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: dmathieu <42@dmathieu.com>
2025-07-10 18:07:37 +02:00
Bəxtiyar
687c3f5fb5 semconv: add ErrorType attribute function (#6962)
Closes #6904 

This PR adds a helper method to semconv package to set ErrorType
attribute easily.

---------

Co-authored-by: Damien Mathieu <42@dmathieu.com>
Co-authored-by: Robert Pająk <pellared@hotmail.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2025-07-10 09:45:44 +02:00
renovate[bot]
73b2cd39b0 fix(deps): update golang.org/x (#6989)
This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
| golang.org/x/mod | `v0.25.0` -> `v0.26.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fmod/v0.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fmod/v0.25.0/v0.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| golang.org/x/sync | `v0.15.0` -> `v0.16.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fsync/v0.16.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fsync/v0.15.0/v0.16.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| golang.org/x/sys | `v0.33.0` -> `v0.34.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fsys/v0.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fsys/v0.33.0/v0.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| golang.org/x/text | `v0.26.0` -> `v0.27.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2ftext/v0.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2ftext/v0.26.0/v0.27.0?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 - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR is behind base branch, 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-go).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-09 15:32:07 -07:00
renovate[bot]
1459fd4e05 chore(deps): update golang.org/x/telemetry digest to 9926bab (#6988)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| golang.org/x/telemetry | indirect | digest | `5a6bbb1` -> `9926bab` |

---

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

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR is behind base branch, 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-go).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-09 10:14:33 -07:00
renovate[bot]
43f422169a chore(deps): update module github.com/pjbgf/sha1cd to v0.4.0 (#6985)
This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
| [github.com/pjbgf/sha1cd](https://redirect.github.com/pjbgf/sha1cd) |
`v0.3.2` -> `v0.4.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fpjbgf%2fsha1cd/v0.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fpjbgf%2fsha1cd/v0.3.2/v0.4.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>pjbgf/sha1cd (github.com/pjbgf/sha1cd)</summary>

###
[`v0.4.0`](https://redirect.github.com/pjbgf/sha1cd/releases/tag/v0.4.0)

[Compare
Source](https://redirect.github.com/pjbgf/sha1cd/compare/v0.3.2...v0.4.0)

##### What's Changed

##### ARM64 native support for improved performance

- Arm64 implementation for UBC by
[@&#8203;pjbgf](https://redirect.github.com/pjbgf) in
[https://github.com/pjbgf/sha1cd/pull/184](https://redirect.github.com/pjbgf/sha1cd/pull/184)
- Implement `arm64` native version by
[@&#8203;pjbgf](https://redirect.github.com/pjbgf) in
[https://github.com/pjbgf/sha1cd/pull/188](https://redirect.github.com/pjbgf/sha1cd/pull/188)
- build: Add GitHub arm64 runners to workflows by
[@&#8203;pjbgf](https://redirect.github.com/pjbgf) in
[https://github.com/pjbgf/sha1cd/pull/189](https://redirect.github.com/pjbgf/sha1cd/pull/189)
- arm64: Drop unused vregs by
[@&#8203;pjbgf](https://redirect.github.com/pjbgf) in
[https://github.com/pjbgf/sha1cd/pull/191](https://redirect.github.com/pjbgf/sha1cd/pull/191)

##### Misc

- Remove `crypto.RegisterHash` call by
[@&#8203;pjbgf](https://redirect.github.com/pjbgf) in
[https://github.com/pjbgf/sha1cd/pull/170](https://redirect.github.com/pjbgf/sha1cd/pull/170)
- Revert "Remove `crypto.RegisterHash` call" by
[@&#8203;pjbgf](https://redirect.github.com/pjbgf) in
[https://github.com/pjbgf/sha1cd/pull/190](https://redirect.github.com/pjbgf/sha1cd/pull/190)

##### Dependency bumps

- build(deps): Bump golang from `51a6466` to `8c10f21` by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/153](https://redirect.github.com/pjbgf/sha1cd/pull/153)
- build(deps): Bump actions/setup-go from 5.2.0 to 5.3.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/151](https://redirect.github.com/pjbgf/sha1cd/pull/151)
- build(deps): Bump github/codeql-action from 3.28.1 to 3.28.5 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/152](https://redirect.github.com/pjbgf/sha1cd/pull/152)
- build(deps): Bump github/codeql-action from 3.28.5 to 3.28.8 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/154](https://redirect.github.com/pjbgf/sha1cd/pull/154)
- build(deps): Bump github/codeql-action from 3.28.8 to 3.28.9 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/155](https://redirect.github.com/pjbgf/sha1cd/pull/155)
- build(deps): Bump golang from `8c10f21` to `9271129` by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/156](https://redirect.github.com/pjbgf/sha1cd/pull/156)
- build(deps): Bump golang from 1.23 to 1.24 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/157](https://redirect.github.com/pjbgf/sha1cd/pull/157)
- build(deps): Bump github/codeql-action from 3.28.9 to 3.28.10 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/158](https://redirect.github.com/pjbgf/sha1cd/pull/158)
- build(deps): Bump github/codeql-action from 3.28.10 to 3.28.11 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/160](https://redirect.github.com/pjbgf/sha1cd/pull/160)
- build(deps): Bump golang from `2b1cbf2` to `3f74443` by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/159](https://redirect.github.com/pjbgf/sha1cd/pull/159)
- build(deps): Bump github/codeql-action from 3.28.11 to 3.28.12 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/161](https://redirect.github.com/pjbgf/sha1cd/pull/161)
- build(deps): Bump golang from `3f74443` to `52ff1b3` by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/163](https://redirect.github.com/pjbgf/sha1cd/pull/163)
- build(deps): Bump actions/setup-go from 5.3.0 to 5.4.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/162](https://redirect.github.com/pjbgf/sha1cd/pull/162)
- build(deps): Bump github/codeql-action from 3.28.12 to 3.28.13 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/164](https://redirect.github.com/pjbgf/sha1cd/pull/164)
- build(deps): Bump github/codeql-action from 3.28.13 to 3.28.14 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/166](https://redirect.github.com/pjbgf/sha1cd/pull/166)
- build(deps): Bump golang from `52ff1b3` to `991aa6a` by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/165](https://redirect.github.com/pjbgf/sha1cd/pull/165)
- build(deps): Bump golang from `991aa6a` to `1ecc479` by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/168](https://redirect.github.com/pjbgf/sha1cd/pull/168)
- build(deps): Bump golang from
1.24@&#8203;sha256:1ecc479bc712a6bdb56df3e346e33edcc141f469f82840bab9f4bc2bc41bf91d
to
sha256:d9db32125db0c3a680cfb7a1afcaefb89c898a075ec148fdc2f0f646cc2ed509
by [@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/169](https://redirect.github.com/pjbgf/sha1cd/pull/169)
- build(deps): Bump github/codeql-action from 3.28.14 to 3.28.15 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/167](https://redirect.github.com/pjbgf/sha1cd/pull/167)
- build(deps): Bump github/codeql-action from 3.28.15 to 3.28.16 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/171](https://redirect.github.com/pjbgf/sha1cd/pull/171)
- build(deps): Bump github/codeql-action from 3.28.16 to 3.28.17 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/173](https://redirect.github.com/pjbgf/sha1cd/pull/173)
- build(deps): Bump golang from `d9db321` to `30baaea` by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/172](https://redirect.github.com/pjbgf/sha1cd/pull/172)
- build(deps): Bump actions/setup-go from 5.4.0 to 5.5.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/174](https://redirect.github.com/pjbgf/sha1cd/pull/174)
- build(deps): Bump golang from `30baaea` to `39d9e7d` by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/175](https://redirect.github.com/pjbgf/sha1cd/pull/175)
- build(deps): Bump golang from `39d9e7d` to `86b4cff` by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/177](https://redirect.github.com/pjbgf/sha1cd/pull/177)
- build(deps): Bump github/codeql-action from 3.28.17 to 3.28.18 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/176](https://redirect.github.com/pjbgf/sha1cd/pull/176)
- build(deps): Bump golang from `86b4cff` to `4c0a181` by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/178](https://redirect.github.com/pjbgf/sha1cd/pull/178)
- build(deps): Bump golang from `4c0a181` to `81bf592` by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/179](https://redirect.github.com/pjbgf/sha1cd/pull/179)
- build(deps): Bump github/codeql-action from 3.28.18 to 3.28.19 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/180](https://redirect.github.com/pjbgf/sha1cd/pull/180)
- build(deps): Bump golang from `81bf592` to `db5d0af` by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/181](https://redirect.github.com/pjbgf/sha1cd/pull/181)
- build(deps): Bump github/codeql-action from 3.28.19 to 3.29.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/182](https://redirect.github.com/pjbgf/sha1cd/pull/182)
- build(deps): Bump golang from `db5d0af` to `10c1318` by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/183](https://redirect.github.com/pjbgf/sha1cd/pull/183)
- build(deps): Bump github/codeql-action from 3.29.0 to 3.29.1 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/185](https://redirect.github.com/pjbgf/sha1cd/pull/185)
- build(deps): Bump github/codeql-action from 3.29.1 to 3.29.2 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/187](https://redirect.github.com/pjbgf/sha1cd/pull/187)
- build(deps): Bump golang from `10c1318` to `20a022e` by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/pjbgf/sha1cd/pull/186](https://redirect.github.com/pjbgf/sha1cd/pull/186)

**Full Changelog**:
https://github.com/pjbgf/sha1cd/compare/v0.3.2...v0.4.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR is behind base branch, 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-go).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-09 13:52:27 +02:00
OpenTelemetry Bot
e97ee25f2e Add minimum token permissions for all github workflow files (#6950)
See https://github.com/open-telemetry/sig-security/issues/148 for
details.

Co-authored-by: otelbot <197425009+otelbot@users.noreply.github.com>
2025-07-09 13:28:36 +02:00
Corentin
86640ceae0 Clarify DefaultMaxQueueSize and DefaultScheduleDelay usage (#6974)
### Description

OpenTelemetry uses `DefaultScheduleDelay` and `DefaultExportTimeout`
values as milliseconds but Go time package will understand them as
nanoseconds.

I understand that this is a stable library and that those value will
probably never change, so can we at least clarify their usage?

Right above the defaults declaration it says `// Defaults for
BatchSpanProcessorOptions.` which is confusing.

We used `trace.DefaultScheduleDelay` as a fallback value for our tracing
setup.
This confusion led to high CPU usage due to the frequent batch exports.

### Confusing behavior

```go
processor := trace.NewBatchSpanProcessor(exporter,
    // set timeout to 5000 ns instead of the expected 5000 ms
    trace.WithBatchTimeout(trace.DefaultScheduleDelay),
    // set timeout to 30000 ns instead of the expected 30000 ms
    trace.WithExportTimeout(trace.DefaultExportTimeout),
)
```

### Correct way to use those values

```go
processor := trace.NewBatchSpanProcessor(exporter,
    trace.WithBatchTimeout(trace.DefaultScheduleDelay * time.Millisecond),
    trace.WithExportTimeout(trace.DefaultExportTimeout * time.Millisecond),
)
```

---------

Co-authored-by: Damien Mathieu <42@dmathieu.com>
Co-authored-by: Robert Pająk <pellared@hotmail.com>
2025-07-09 11:18:17 +02:00
renovate[bot]
afd476363f chore(deps): update golang.org/x/telemetry digest to 5a6bbb1 (#6975)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| golang.org/x/telemetry | indirect | digest | `2f1f772` -> `5a6bbb1` |

---

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

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR is behind base branch, 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-go).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-08 10:49:40 -07:00
renovate[bot]
bb3878cc64 fix(deps): update googleapis to 8d1bb00 (#6973)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[google.golang.org/genproto/googleapis/api](https://redirect.github.com/googleapis/go-genproto)
| indirect | digest | `513f239` -> `8d1bb00` |
|
[google.golang.org/genproto/googleapis/rpc](https://redirect.github.com/googleapis/go-genproto)
| indirect | digest | `513f239` -> `8d1bb00` |
|
[google.golang.org/genproto/googleapis/rpc](https://redirect.github.com/googleapis/go-genproto)
| require | digest | `513f239` -> `8d1bb00` |

---

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

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR is behind base branch, 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-go).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-07 16:34:14 -07:00
renovate[bot]
3ac8447ebc fix(deps): update module go.opentelemetry.io/build-tools/gotmpl to v0.24.0 (#6972)
This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
|
[go.opentelemetry.io/build-tools/gotmpl](https://redirect.github.com/open-telemetry/opentelemetry-go-build-tools)
| `v0.23.1` -> `v0.24.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fbuild-tools%2fgotmpl/v0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fbuild-tools%2fgotmpl/v0.23.1/v0.24.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-build-tools
(go.opentelemetry.io/build-tools/gotmpl)</summary>

###
[`v0.24.0`](https://redirect.github.com/open-telemetry/opentelemetry-go-build-tools/blob/HEAD/CHANGELOG.md#v0240)

[Compare
Source](https://redirect.github.com/open-telemetry/opentelemetry-go-build-tools/compare/v0.23.1...v0.24.0)

##### 🛑 Breaking changes 🛑

- `multimod`: Default to attempting pre-releasing all module sets.
([#&#8203;992](https://redirect.github.com/open-telemetry/opentelemetry-go-build-tools/issues/992))

##### 🚩 Deprecations 🚩

- `semconvgen`: The semconvgen tooling is deprecated.
([#&#8203;1004](https://redirect.github.com/open-telemetry/opentelemetry-go-build-tools/issues/1004))
  Use Weaver instead.

##### 💡 Enhancements 💡

- `checkapi`: Allow to check the API of components matches strictly to
guidelines, with the only structs exported the Config structs.
([#&#8203;894](https://redirect.github.com/open-telemetry/opentelemetry-go-build-tools/issues/894))

- `issuegenerator`: Increased search for existing issues to 6 months.
([#&#8203;925](https://redirect.github.com/open-telemetry/opentelemetry-go-build-tools/issues/925))

- `multimod`: Add retries to multimod sync
([#&#8203;941](https://redirect.github.com/open-telemetry/opentelemetry-go-build-tools/issues/941))
  This tries to address occasional flakes in the Go proxy.

- `multimod`: Support custom version reference files
([#&#8203;994](https://redirect.github.com/open-telemetry/opentelemetry-go-build-tools/issues/994))
A new "modules" section is parsed in the version configuration. This
section
defines relative file paths for files that references the version of the
module set. If this section is not used for a module the default
"version.go"
  file at the root of the module directory is still assumed.

##### 🧰 Bug fixes 🧰

- `multimod`: Use Go errors to return error instead of logging and
halting.
([#&#8203;1006](https://redirect.github.com/open-telemetry/opentelemetry-go-build-tools/issues/1006))
- `multimod`: Fix the multimod root command name in help text.
([#&#8203;991](https://redirect.github.com/open-telemetry/opentelemetry-go-build-tools/issues/991))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR is behind base branch, 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-go).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-07 14:27:38 -07:00
renovate[bot]
32f1e8507f fix(deps): update build-tools to v0.24.0 (#6971)
This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
|
[go.opentelemetry.io/build-tools/crosslink](https://redirect.github.com/open-telemetry/opentelemetry-go-build-tools)
| `v0.23.1` -> `v0.24.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fbuild-tools%2fcrosslink/v0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fbuild-tools%2fcrosslink/v0.23.1/v0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/build-tools/multimod](https://redirect.github.com/open-telemetry/opentelemetry-go-build-tools)
| `v0.23.1` -> `v0.24.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fbuild-tools%2fmultimod/v0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fbuild-tools%2fmultimod/v0.23.1/v0.24.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-build-tools
(go.opentelemetry.io/build-tools/crosslink)</summary>

###
[`v0.24.0`](https://redirect.github.com/open-telemetry/opentelemetry-go-build-tools/blob/HEAD/CHANGELOG.md#v0240)

[Compare
Source](https://redirect.github.com/open-telemetry/opentelemetry-go-build-tools/compare/v0.23.1...v0.24.0)

##### 🛑 Breaking changes 🛑

- `multimod`: Default to attempting pre-releasing all module sets.
([#&#8203;992](https://redirect.github.com/open-telemetry/opentelemetry-go-build-tools/issues/992))

##### 🚩 Deprecations 🚩

- `semconvgen`: The semconvgen tooling is deprecated.
([#&#8203;1004](https://redirect.github.com/open-telemetry/opentelemetry-go-build-tools/issues/1004))
  Use Weaver instead.

##### 💡 Enhancements 💡

- `checkapi`: Allow to check the API of components matches strictly to
guidelines, with the only structs exported the Config structs.
([#&#8203;894](https://redirect.github.com/open-telemetry/opentelemetry-go-build-tools/issues/894))

- `issuegenerator`: Increased search for existing issues to 6 months.
([#&#8203;925](https://redirect.github.com/open-telemetry/opentelemetry-go-build-tools/issues/925))

- `multimod`: Add retries to multimod sync
([#&#8203;941](https://redirect.github.com/open-telemetry/opentelemetry-go-build-tools/issues/941))
  This tries to address occasional flakes in the Go proxy.

- `multimod`: Support custom version reference files
([#&#8203;994](https://redirect.github.com/open-telemetry/opentelemetry-go-build-tools/issues/994))
A new "modules" section is parsed in the version configuration. This
section
defines relative file paths for files that references the version of the
module set. If this section is not used for a module the default
"version.go"
  file at the root of the module directory is still assumed.

##### 🧰 Bug fixes 🧰

- `multimod`: Use Go errors to return error instead of logging and
halting.
([#&#8203;1006](https://redirect.github.com/open-telemetry/opentelemetry-go-build-tools/issues/1006))
- `multimod`: Fix the multimod root command name in help text.
([#&#8203;991](https://redirect.github.com/open-telemetry/opentelemetry-go-build-tools/issues/991))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR is behind base branch, 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-go).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-07 13:19:53 -07:00
Tyler Yahn
a722d1ae15 [chore] Remove semconvgen tooling (#6963)
This is no longer used.

---------

Co-authored-by: Robert Pająk <pellared@hotmail.com>
2025-07-07 12:23:23 -07:00
Tyler Yahn
b0868cf944 Ignore link to semconv model in Makefile (#6969)
Link is not expected to be a valid URL, it is in a Weaver specific
format.

Addresses
[this](https://github.com/open-telemetry/opentelemetry-go/actions/runs/16124252340/job/45497263506?pr=6963)
failure.
2025-07-07 12:10:02 -07:00