Commit Graph

5915 Commits

Author SHA1 Message Date
Pablo Baeyens e477c3a348
[confmap] Mark `confmap.strictlyTypedInput` as stable (#10793)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

<!-- Issue number if applicable -->

Marks `confmap.strictlyTypedInput` as stable.

#### Link to tracking issue

Fixes #10552

Blocked by:
- #10794
- #10795
2024-08-20 10:04:59 +02:00
Sindy Li d2ed276a92
Enable batch sender in oltpexporter (#10846)
#### Description

This PR adds opt-in support to oltp exporter for the experimental batch
sender
(https://github.com/open-telemetry/opentelemetry-collector/issues/8122).
By default batch sender is not enabled.

Similar:
*
https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/34238
*
https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/32563

#### Link to tracking issue

Resolves
https://github.com/open-telemetry/opentelemetry-collector/issues/10834

#### Testing

`exporter/otlpexporter/config_test.go`

#### Documentation

Updated the `oltpexporter` README to point to `exporterhelper` README
for batching.

---------

Co-authored-by: Dmitrii Anoshin <anoshindx@gmail.com>
2024-08-16 19:46:40 -07:00
Pablo Baeyens 8506809f10
[otelcol] Preserve internal representation for components' configurations (#10897)
#### Description

The custom unmarshalling for components copied a map without preserving
the internal representation. This led to the issues mentioned on #10552
not being fully fixed (they were only fixed if they happened in the
`service::telemetry` section for example).

#### Link to tracking issue
Fixes issues mentioned on #10552

#### Testing

This adds one unit test at the `otelcol` level. Since we didn't catch
this with our current `confmap/internal/e2e` tests, we likely also want
to refactor those.

---------

Co-authored-by: Dmitrii Anoshin <anoshindx@gmail.com>
Co-authored-by: Curtis Robert <crobert@splunk.com>
Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2024-08-16 12:50:43 -07:00
Munir Abdinur caae756a09
chore(builder): Update readme (#10867)
#### Description

Following the tldr section in the builder
[README](https://github.com/open-telemetry/opentelemetry-collector/tree/main/cmd/builder#tldr)
raises the following errors:

With v0.99.0:

```
Error: mismatch in go.mod and builder configuration versions: core collector version calculated by component dependencies "v0.107.0" does not match configured version "v0.106.1". Use --skip-strict-versioning to temporarily disable this check. This flag will be removed in a future minor version
```

With latest:
```
Error: invalid 'confmap.ResolverSettings' configuration: DefaultScheme not found in providers list
2024/08/13 06:55:50 collector server run finished with error: invalid 'confmap.ResolverSettings' configuration: DefaultScheme not found in providers list
```

Removing the `fileprovider` resolves the confmap failure on latest. This
PR removes the `fileprovider` from the `otelcol-custom` binary. An
alternatively we could update the `otelcol.yaml` to include the expected
scheme.
2024-08-16 12:28:33 -07:00
Alex Boten dec435aa6e
[chore] pin version for npm tooling (#10905)
The repo uses markdown-link-check and not having a package.json file to
pin the version causes dependabot security checks sadness. Following the
same pattern as the specification repo for storing package.json in the
root of the repo.

---------

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2024-08-16 11:24:24 -07:00
Alex Boten abed3ab570
[chore] add status table to mdatagen (#10898)
not sure why it didn't have one, it's convenient for finding issues w/
mdatagen

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2024-08-16 08:41:13 -07:00
akshaychopra5207 9fd84668bb
fix replace words in doc (#10896)
corrects the description by replacing words in readme
2024-08-16 15:20:30 +02:00
Andrew Wilkins d3d5e06080
[chore] Clarify config removal in CONTRIBUTING.md (#10582)
#### Description

Clarify that deprecated config options are expected to remain for at
least 6 months after deprecation.

"MUST NOT" makes it clear for readers that this is something that
definitely should not be done, vs. something that's discretionary.

See also
https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/33776#issuecomment-2217491855
2024-08-16 10:45:10 +02:00
Tyler Helmuth cb24d0c7d7
[component] Remove ReportStatus from component.TelemetrySettings (#10777)
#### Description

This PR removes `ReportStatus` from `component.TelemetrySettings` and
instead expects components to check if their `component.Host` implements
a new `componentstatus.Reporter` interface.

<!-- Issue number if applicable -->
#### Link to tracking issue
Related to
https://github.com/open-telemetry/opentelemetry-collector/pull/10725
Related to
https://github.com/open-telemetry/opentelemetry-collector/pull/10413

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

The contrib tests will fail because this is a breaking change. If we
merge this I and @mwear can commit to updating contrib before the next
release.

---------

Co-authored-by: Pablo Baeyens <pablo.baeyens@datadoghq.com>
2024-08-16 09:27:01 +02:00
Braydon Kains 3bc5f29c5a
ballastextension: fix comment typo (#10894)
#### Description
I know this is a deprecated extension, but I stumbled on this comment
and thought it didn't look right. 😄
2024-08-15 10:19:52 -07:00
Mike Goldsmith a3e6e6df4b
[mdatagen] Only include context import when needed (#10884)
#### Description

Updates the generated_telemetry and generated_metrics files to only
include the context import when there are async metrics.

#### Link to tracking issue

- Closes #10883

#### Testing

Added unit test to verify expected behaviour.
2024-08-15 10:16:48 -07:00
renovate[bot] 7307384dd6
Update module github.com/golangci/golangci-lint to v1.60.0 (#10881)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

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

###
[`v1.60.0`](https://togithub.com/golangci/golangci-lint/compare/v1.59.1...v1.60.0)

[Compare
Source](https://togithub.com/golangci/golangci-lint/compare/v1.59.1...v1.60.0)

</details>

---

### Configuration

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

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

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

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

---

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

---

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

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

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2024-08-15 10:09:53 -07:00
Mike Goldsmith c4d52f3cd7
[mdatagen] Update usage output (#10887)
#### Description
Updates mdatagen's output to show a complete example including the
required metadata.yaml file.

#### Link to tracking issue
- Closes #10886

#### Testing
Running `mdatagen -h` now shows `Usage: ./mdatagen metadata.yaml`

#### Documentation
N/A

---------

Co-authored-by: Yang Song <songy23@users.noreply.github.com>
2024-08-14 13:58:02 -07:00
Erik Westra 38c8f41878
chore (deps): migrate rand to rand/v2 (#10889)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Migrated rand dependency to rand/v2. We only use rand in tests and mocks
and the only two functions we use are float32 and float64 which still
exist in the new v2 API so nothing very exciting going on here.

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

<!--Describe what testing was performed and which tests were added.-->
#### Testing
Ran `make test` successfully

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

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

---------

Signed-off-by: Erik Westra <e.s.westra.95@gmail.com>
2024-08-14 18:41:38 +02:00
Tyler Helmuth d5d1f82bc7
[chore] Refactor `service/host` into `service/internal/graph` (#10854)
#### Description
This is a prep PR to reduce the size of
https://github.com/open-telemetry/opentelemetry-collector/pull/10777. As
part of the work to make our `component.Host` implementation implement
`componentstatus.Reporter` (see
https://github.com/open-telemetry/opentelemetry-collector/pull/10852),
the `host` struct and `graph` logic need to be closer together. This is
because, as part of
https://github.com/open-telemetry/opentelemetry-collector/pull/10777
`StartAll` is changed to depend on our specific `Host` type instead of a
`component.Host`. Our host already has a dependency on `graph`, so it
can't be moved into its own module.

<!-- Issue number if applicable -->
#### Link to tracking issue
Related to
https://github.com/open-telemetry/opentelemetry-collector/pull/10777
Related to
https://github.com/open-telemetry/opentelemetry-collector/pull/10413
2024-08-14 11:52:06 +02:00
Alex Boten b0085e5591
[chore] use slices.Concat instead of a series of append (#10879)
Follows
https://github.com/open-telemetry/opentelemetry-collector/pull/10869

---------

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2024-08-13 16:09:01 -07:00
renovate[bot] 70f58ceda7
Update github/codeql-action action to v3.26.1 (#10880)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github/codeql-action](https://togithub.com/github/codeql-action) |
action | patch | `v3.26.0` -> `v3.26.1` |

---

> [!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.26.1`](https://togithub.com/github/codeql-action/compare/v3.26.0...v3.26.1)

[Compare
Source](https://togithub.com/github/codeql-action/compare/v3.26.0...v3.26.1)

</details>

---

### Configuration

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

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

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

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

---

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

---

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

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-13 15:21:19 -07:00
Alex Boten 76acd37b2c
Added support for go1.23, bumped the minimum version to 1.22 (#10869)
Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2024-08-13 14:32:29 -07:00
Alex Boten ce608baa28
[chore] update test to use slices.Reverse (#10878)
This addresses a TODO in the extension test code.

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2024-08-13 14:32:09 -07:00
Curtis Robert 3f4f0d082d
[batchprocessor] Update metric units (#10658)
#### Description
`1` isn't an informative metric unit. I've made a best-guess attempt at
updating metric units, f**eedback is very necessary here**, the units
are not very clear here. I attempted to match the unit with metric
descriptions.

[Semantic conventions for
reference](https://opentelemetry.io/docs/specs/semconv/general/metrics/).

#### Link to tracking issue
Fixes
https://github.com/open-telemetry/opentelemetry-collector/issues/10652
2024-08-13 10:50:27 -07:00
Alex Boten 74aaafb84b
[chore] fix broken links (#10874)
Fixes
https://github.com/open-telemetry/opentelemetry-collector/issues/10871

---------

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2024-08-13 10:46:42 -07:00
Tyler Helmuth 23236b4f21
[componentstatus] Add Reporter interface (#10852)
#### Description
Adds a `Reporter` interface that represents how a `component.Host`
implementation could expose the ability to report a status.

You can see how this interface will be used by looking at Related to
https://github.com/open-telemetry/opentelemetry-collector/pull/10777

<!-- Issue number if applicable -->
#### Link to tracking issue
Related to
https://github.com/open-telemetry/opentelemetry-collector/pull/10777
Related to
https://github.com/open-telemetry/opentelemetry-collector/pull/10413

<!--Describe what testing was performed and which tests were added.-->
#### Testing
Added unit test
2024-08-13 17:49:05 +02:00
renovate[bot] 33247bb549
Update module github.com/go-viper/mapstructure/v2 to v2.1.0 (#10862)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/go-viper/mapstructure/v2](https://togithub.com/go-viper/mapstructure)
| `v2.0.0` -> `v2.1.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fgo-viper%2fmapstructure%2fv2/v2.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fgo-viper%2fmapstructure%2fv2/v2.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fgo-viper%2fmapstructure%2fv2/v2.0.0/v2.1.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.0.0/v2.1.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.1.0`](https://togithub.com/go-viper/mapstructure/releases/tag/v2.1.0)

[Compare
Source](https://togithub.com/go-viper/mapstructure/compare/v2.0.0...v2.1.0)

#### What's Changed

- build(deps): bump actions/setup-go from 5.0.0 to 5.0.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/go-viper/mapstructure/pull/28](https://togithub.com/go-viper/mapstructure/pull/28)
- build(deps): bump actions/checkout from 4.1.1 to 4.1.6 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/go-viper/mapstructure/pull/27](https://togithub.com/go-viper/mapstructure/pull/27)
- build(deps): bump golangci/golangci-lint-action from 3.7.0 to 6.0.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/go-viper/mapstructure/pull/26](https://togithub.com/go-viper/mapstructure/pull/26)
- build(deps): bump actions/setup-go from 5.0.1 to 5.0.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/go-viper/mapstructure/pull/34](https://togithub.com/go-viper/mapstructure/pull/34)
- build(deps): bump actions/checkout from 4.1.6 to 4.1.7 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/go-viper/mapstructure/pull/29](https://togithub.com/go-viper/mapstructure/pull/29)
- Port Succo's fix to cache decodeHooks by
[@&#8203;cedric-cordenier](https://togithub.com/cedric-cordenier) in
[https://github.com/go-viper/mapstructure/pull/33](https://togithub.com/go-viper/mapstructure/pull/33)
- build(deps): bump golangci/golangci-lint-action from 6.0.1 to 6.1.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/go-viper/mapstructure/pull/38](https://togithub.com/go-viper/mapstructure/pull/38)
- Add configuration option to specify tag value that indicates squash by
[@&#8203;triarius](https://togithub.com/triarius) in
[https://github.com/go-viper/mapstructure/pull/18](https://togithub.com/go-viper/mapstructure/pull/18)
- Adding support for squash: interface. by
[@&#8203;m1k1o](https://togithub.com/m1k1o) in
[https://github.com/go-viper/mapstructure/pull/17](https://togithub.com/go-viper/mapstructure/pull/17)

#### New Contributors

- [@&#8203;dependabot](https://togithub.com/dependabot) made their first
contribution in
[https://github.com/go-viper/mapstructure/pull/28](https://togithub.com/go-viper/mapstructure/pull/28)
- [@&#8203;cedric-cordenier](https://togithub.com/cedric-cordenier) made
their first contribution in
[https://github.com/go-viper/mapstructure/pull/33](https://togithub.com/go-viper/mapstructure/pull/33)
- [@&#8203;triarius](https://togithub.com/triarius) made their first
contribution in
[https://github.com/go-viper/mapstructure/pull/18](https://togithub.com/go-viper/mapstructure/pull/18)
- [@&#8203;m1k1o](https://togithub.com/m1k1o) made their first
contribution in
[https://github.com/go-viper/mapstructure/pull/17](https://togithub.com/go-viper/mapstructure/pull/17)

**Full Changelog**:
https://github.com/go-viper/mapstructure/compare/v2.0.0...v2.1.0

</details>

---

### Configuration

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

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

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

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

---

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

---

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

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

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2024-08-13 07:18:15 -07:00
renovate[bot] c4fa081a4a
Update All go.opentelemetry.io/collector packages to v0.107.0 (#10865)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[go.opentelemetry.io/collector/confmap/provider/envprovider](https://togithub.com/open-telemetry/opentelemetry-collector)
| `v0.106.1` -> `v0.107.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fcollector%2fconfmap%2fprovider%2fenvprovider/v0.107.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fcollector%2fconfmap%2fprovider%2fenvprovider/v0.107.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fcollector%2fconfmap%2fprovider%2fenvprovider/v0.106.1/v0.107.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fcollector%2fconfmap%2fprovider%2fenvprovider/v0.106.1/v0.107.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/collector/confmap/provider/fileprovider](https://togithub.com/open-telemetry/opentelemetry-collector)
| `v0.106.1` -> `v0.107.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fcollector%2fconfmap%2fprovider%2ffileprovider/v0.107.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fcollector%2fconfmap%2fprovider%2ffileprovider/v0.107.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fcollector%2fconfmap%2fprovider%2ffileprovider/v0.106.1/v0.107.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fcollector%2fconfmap%2fprovider%2ffileprovider/v0.106.1/v0.107.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/collector/exporter/otlpexporter](https://togithub.com/open-telemetry/opentelemetry-collector)
| `v0.106.1` -> `v0.107.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fcollector%2fexporter%2fotlpexporter/v0.107.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fcollector%2fexporter%2fotlpexporter/v0.107.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fcollector%2fexporter%2fotlpexporter/v0.106.1/v0.107.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fcollector%2fexporter%2fotlpexporter/v0.106.1/v0.107.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/collector/exporter/otlphttpexporter](https://togithub.com/open-telemetry/opentelemetry-collector)
| `v0.106.1` -> `v0.107.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fcollector%2fexporter%2fotlphttpexporter/v0.107.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fcollector%2fexporter%2fotlphttpexporter/v0.107.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fcollector%2fexporter%2fotlphttpexporter/v0.106.1/v0.107.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fcollector%2fexporter%2fotlphttpexporter/v0.106.1/v0.107.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/collector/receiver/otlpreceiver](https://togithub.com/open-telemetry/opentelemetry-collector)
| `v0.106.1` -> `v0.107.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fcollector%2freceiver%2fotlpreceiver/v0.107.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fcollector%2freceiver%2fotlpreceiver/v0.107.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fcollector%2freceiver%2fotlpreceiver/v0.106.1/v0.107.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fcollector%2freceiver%2fotlpreceiver/v0.106.1/v0.107.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/confmap/provider/envprovider)</summary>

###
[`v0.107.0`](https://togithub.com/open-telemetry/opentelemetry-collector/blob/HEAD/CHANGELOG.md#v1130v01070)

[Compare
Source](https://togithub.com/open-telemetry/opentelemetry-collector/compare/v0.106.1...v0.107.0)

##### 🛑 Breaking changes 🛑

- `service`: Remove OpenCensus bridge completely, mark feature gate as
stable.
([#&#8203;10414](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10414))
- `confmap`: Set the `confmap.unifyEnvVarExpansion` feature gate to
Stable. Expansion of `$FOO` env vars is no longer supported. Use
`${FOO}` or `${env:FOO}` instead.
([#&#8203;10508](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10508))

##### 💡 Enhancements 💡

- `mdatagen`: export ScopeName in internal/metadata package
([#&#8203;10845](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10845))
This can be used by components that need to set their scope name
manually. Will save component owners from having to store a variable,
which may diverge from the scope name used by the component for emitting
its own telemetry.

- `semconv`: Add v1.26.0 semantic conventions package
([#&#8203;10249](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10249),
[#&#8203;10829](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10829))

- `mdatagen`: Expose a setting on tests::host to set up your own host
initialization code
([#&#8203;10765](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10765))
Some receivers require a host that has additional capabilities such as
exposing exporters.
For those, we can expose a setting that allows them to place a different
host in the generated code.

- `confmap`: Allow using any YAML structure as a string when loading
configuration.
([#&#8203;10800](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10800))
Previous to this change, slices could not be used as strings in
configuration.

- `ocb`: migrate build and release of ocb binaries to
opentelemetry-collector-releases repository
([#&#8203;10710](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10710))
ocb binaries will now be released under
open-telemetry/opentelemetry-collector-releases tagged as
"cmd/builder/vX.XXX.X"

- `semconv`: Add semantic conventions version v1.27.0
([#&#8203;10837](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10837))

- `client`: Mark module as stable.
([#&#8203;10775](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10775))

##### 🧰 Bug fixes 🧰

- `configtelemetry`: Add 10s read header timeout on the configtelemetry
Prometheus HTTP server.
([#&#8203;5699](https://togithub.com/open-telemetry/opentelemetry-collector/issues/5699))

- `service`: Allow users to disable the tracer provider via the feature
gate `service.noopTracerProvider`
([#&#8203;10858](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10858))
The service is returning an instance of a SDK tracer provider regardless
of whether there were any processors configured causing resources to be
consumed unnecessarily.

- `processorhelper`: Fix processor metrics not being reported initially
with 0 values.
([#&#8203;10855](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10855))

- `service`: Implement the `temporality_preference` setting for internal
telemetry exported via OTLP
([#&#8203;10745](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10745))

- `configauth`: Fix unmarshaling of authentication in HTTP servers.
([#&#8203;10750](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10750))

- `confmap`: If loading an invalid YAML string through a provider, use
it verbatim instead of erroring out.
([#&#8203;10759](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10759))
This makes the ${env:ENV} syntax closer to how ${ENV} worked before
unifying syntaxes.

- `component`: Allow component names of up to 1024 characters in length.
([#&#8203;10816](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10816))

- `confmap`: Remove original string representation if invalid.
([#&#8203;10787](https://togithub.com/open-telemetry/opentelemetry-collector/issues/10787))

</details>

---

### Configuration

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

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

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

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

---

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

---

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

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-13 06:47:00 -07:00
renovate[bot] c748231fce
Update module golang.org/x/sys to v0.24.0 (#10863)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| golang.org/x/sys | `v0.23.0` -> `v0.24.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fsys/v0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/golang.org%2fx%2fsys/v0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/golang.org%2fx%2fsys/v0.23.0/v0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fsys/v0.23.0/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.

---

### Configuration

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

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

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

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

---

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

---

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

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

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
2024-08-13 13:19:23 +02:00
Curtis Robert c1c8fcd6cc
[service] Fix memory leaks and enable goleak check in tests (#9241)
**Description:** <Describe what has changed.>
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
This change adds `goleak` to check for memory leaks. Originally there
were 3 failing tests in the `service` package, so I'll describe changes
in relation to resolving each test's failing goleak check.

1. `TestServiceTelemetryRestart`: Simplest fix, close the response body
to make sure goroutines aren't leaked by reopening a server on the same
port. This was just a test issue
2. `TestTelemetryInit.UseOTelWithSDKConfiguration`: The [meter
provider](fb3ed1b0d6/service/telemetry.go (L57-L58))
was being started in the initialization process ([metrics
reference](fb3ed1b0d6/service/internal/proctelemetry/config.go (L135))),
but never shutdown. The type originally being used
(`meter.MetricProvider`) was the base interface which didn't provide a
`Shutdown` method. I changed this to use the `sdk` interfaces that
provide the required `Shutdown` method. The actual functionality of
starting the providers was already using and returning the `sdk`
interface, so the actual underlying type remains the same. Since `mp` is
a private member and `sdkmetric` and implement the original type, I
don't believe changing the type is a breaking change.
3. `TestServiceTelemetryCleanupOnError`: This test starts a server using
a sub-goroutine, cancels it, starts again in a subroutine, and cancels
again in the main goroutine. This test showed the racing behavior of the
subroutine running
[`server.ListenAndServe`](fb3ed1b0d6/service/internal/proctelemetry/config.go (L148))
and the main goroutine's functionality of [calling
close](fb3ed1b0d6/service/telemetry.go (L219))
and then starting the server again [right
away](fb3ed1b0d6/service/service_test.go (L244)).
The solution here is to add a `sync.WaitGroup` variable that can
properly block until all servers are closed before returning from
`shutdown`. This will allow us to ensure it's safe to proceed knowing
the ports are free, and server is fully closed.

The first test fix was just a test issue, but 2 and 3 were real bugs. I
realize it's a bit hard to read with them all together, but I assumed
adding PR dependency notes would be more complicated.

**Link to tracking Issue:** <Issue number if applicable>
#9165

**Testing:** <Describe what testing was performed and which tests were
added.>
All tests are passing as well as goleak check.

---------

Co-authored-by: Pablo Baeyens <pablo.baeyens@datadoghq.com>
2024-08-13 12:24:54 +02:00
OpenTelemetry Bot aacddac430
[chore] Prepare release v1.13.0/v0.107.0 (#10860)
The following commands were run to prepare this release:
- make chlog-update VERSION=v1.13.0/v0.107.0
- make prepare-release PREVIOUS_VERSION=1[.]12[.]0
RELEASE_CANDIDATE=1.13.0 MODSET=stable
- make prepare-release PREVIOUS_VERSION=0[.]106[.]1
RELEASE_CANDIDATE=0.107.0 MODSET=beta
2024-08-12 17:32:43 -07:00
Alex Boten 998412ced7
[service] Allow users to disable the tracer provider via the feature gate `service.noopTracerProvider` (#10859)
Previously the service was returning an instance of a SDK tracer
provider regardless of whether there were any processors configured
causing resources to be consumed unnecessarily.

Fixes #10858

---------

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2024-08-12 16:26:27 -07:00
Dmitrii Anoshin 06271a6c50
Fix processor metrics not being reported initially with 0 values (#10857)
This change reverts
https://github.com/open-telemetry/opentelemetry-collector/pull/10693,
which had an unintentional behavior change that made the processor
helper report metrics only if they got values other than `0`.

Fixes
https://github.com/open-telemetry/opentelemetry-collector/issues/10855
2024-08-12 13:45:03 -07:00
Tyler Helmuth 643c17e549
[chore] Bump go version to 1.21.13 (#10853) 2024-08-12 09:49:49 -07:00
Alex Boten ef07ea0735
[mdatagen] move ScopeName to generated_status (#10848)
This will make it available to most components, as the
generated_telemetry is only generated for components that have internal
telemetry configured. Arguably the scope name should be moved to its own
file, but i'd rather not add yet another file if possible.

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2024-08-09 12:10:11 -07:00
Antoine Toulme 053d370605
[mdatagen] expose host in generated test code by mdatagen (#10765)
#### Description
Expose a setting on tests::host to set up your own host initialization
code

Some receivers require a host that has additional capabilities such as
exposing exporters.
For those, we can expose a setting that allows them to place a different
host in the generated code.
2024-08-09 11:59:11 -07:00
Moritz Wiesinger 4889aef53c
[chore] improve release version validations (#10826)
#### Description
This PR improves the version validation during the release preparation
workflow.

#### Link to tracking issue
Fixes #10735

---------

Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
2024-08-09 11:56:06 -07:00
John L. Peterson (Jack) 8abfa023a5
Migrate ocb binary release to opentelemetry-collector-releases (#10710)
After discussion with the collector SIG call this week, July
31st, I have made small tweaks to the artifact release that will not
require an "extra step" of pushing tags. If these changes are accepted,
the distributions will be released under tag "vX.XXX.X" and the ocb
binaries will be released under "cmd/builder/vX.XXX.X" but both under
this repo, opentelemetry-collector-releases. The workflow
`builder-release.yaml` in releases repo will push the additional tags
necessary for the builder release.

Refactoring the release process as mentioned in past issues/PRs. ocb
binary is currently released in a separate release tag under this
repository, which makes it harder to find and inconsistent with the rest
of the binaries and images releasing in the
opentelemetry-collector-releases repository.

Releasing the ocb binaries in opentelemetry-collector-releases makes
this process more standardized and also opens the opportunity to release
more tools alongside ocb binary down the road, like corresponding docker
images (as discussed in #5712).

#### Link to tracking issue
Fixes #10662
Mentioned in [releases issue #
295](https://github.com/open-telemetry/opentelemetry-collector-releases/issues/295)
[Corresponding PR in
opentelemetry-collector-releases](https://github.com/open-telemetry/opentelemetry-collector-releases/pull/608)

#### Testing
Sample binary release in [forked
jackgopack4/opentelemetry-collector-releases
repo](https://github.com/jackgopack4/opentelemetry-collector-releases/releases/tag/cmd%2Fbuilder%2Fv0.106.1)

#### Documentation
Updated corresponding documentation to reflect new release process

---------

Co-authored-by: Pablo Baeyens <pbaeyens31+github@gmail.com>
2024-08-09 10:16:09 -07:00
Alex Boten 7638bb2981
[mdatagen] export ScopeName in internal/metadata package (#10845)
This can be used by components that need to set their scope name
manually. Will save component owners from having to store a variable,
which may diverge from the scope name used by the component for emitting
its own telemetry. There are about a dozen components in contrib that
could use this today.

Alternatively, I could just update the scope name strings in the
components manually.

---------

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2024-08-09 08:12:05 -07:00
Alex Boten ecbe02ed68
[chore] adding an issue number in the changelog (#10843)
This will reference the same issue instead of needing to create a PR and
add it to the changelog. Creating a PR and then updating it is not
allowed because of the branch protection permissions.

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2024-08-08 09:58:08 -07:00
Paulo Janotti bdcf614b21
[chore] Release ports on the dynamic range on Windows runners (#10839)
#### Description
The default port used by `zpagesextension` is in a range that Windows
machines can exclude by default. This change adds a PowerShell script to
release the default `zpagesextension` port (55679) on the Windows GH
workflows.

#### Link to tracking issue
Fixes #10811
2024-08-08 08:47:29 -07:00
OpenTelemetry Bot 14ec164161
Add semantic conventions version v1.27.0 (#10837)
---------

Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2024-08-08 08:13:49 -07:00
Hajime Terasawa 291aa24bde
[cmd/builder] clarify mismatched versions in the warning message (#10767)
#### Description

Refine the warning message to make it useful for the end user.

#### Link to tracking issue

Fixes
https://github.com/open-telemetry/opentelemetry-collector/issues/10514

#### Testing

Locally tested.
```sh
2024-07-31T22:03:05.984+0900    INFO    internal/command.go:125 OpenTelemetry Collector Builder {"version": "(devel)"}
2024-07-31T22:03:05.984+0900    INFO    internal/command.go:136 Using default build configuration
2024-07-31T22:03:05.985+0900    INFO    builder/config.go:142   Using go        {"go-executable": "/usr/local/bin/go"}
2024-07-31T22:03:05.985+0900    INFO    builder/main.go:77      You're building a distribution with non-aligned version of the builder. The version mismatch may cause the compilation failure. It's recommended to use the same version.       {"collector-version": "0.104.0", "builder-version": "0.106.1"}
2024-07-31T22:03:05.985+0900    INFO    builder/main.go:100     Sources created {"path": "/tmp/otelcol-distribution3869530617"}
2024-07-31T22:03:06.510+0900    INFO    builder/main.go:191     Getting go modules
2024-07-31T22:03:06.552+0900    INFO    builder/main.go:111     Compiling
2024-07-31T22:03:07.080+0900    INFO    builder/main.go:130     Compiled        {"binary": "/tmp/otelcol-distribution3869530617/otelcorecol"}
```

#### Documentation

N/A

#### Note

I did not add a changelog entry because other PRs that only changed
logging messages and behavior did not add it too.
If this is an incorrect understanding, please point it out.

---------

Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2024-08-08 07:50:14 -07:00
Andrej Giesbrecht b521ed4220
[builder] fix the TestGenerateInvalidOutputPath (#10595)
If the test is executed with the `root` user, the
`TestGenerateInvalidOutputPath` test fails.
The behaviour was noticed with a GitLab runner that was executed with
root rights.

An attempt is made to create the directory `/:invalid` during the test.
A user without root rights receives the message `cannot create directory
'/:invalid': Permission denied`.
In contrast, the `root` user can create the directory without any
problems because this is a valid path.

To correct the behaviour of the test, the path to `:/invalid` was
adjusted.
This is not a valid path under Windows or Linux.

Signed-off-by: Andrej Giesbrecht <giesan@gmx.net>
2024-08-08 14:02:06 +02:00
Antoine Toulme 2c9229d59d
[configtelemetry] Add a read header timeout of 10s on the configtelemetry Prometheus HTTP server (#10675)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Add 10s read header timeout on the configtelemetry Prometheus HTTP
server.

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

---------

Co-authored-by: Pablo Baeyens <pablo.baeyens@datadoghq.com>
2024-08-08 13:57:08 +02:00
Antoine Toulme 00d9d72040
[confighttp] Add `NewDefaultCORSConfig` function (#10676)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Add `NewDefaultCORSConfig` function to initialize the default
`confighttp.CORSConfig`

<!-- Issue number if applicable -->
#### Link to tracking issue
#9655
2024-08-08 13:39:37 +02:00
Yang Song 88b315394a
[chore] Skip a few flaky batch sender tests on Windows (#10831)
Those few ones seem particularly flaky on Windows:
https://github.com/open-telemetry/opentelemetry-collector/issues/10758
https://github.com/open-telemetry/opentelemetry-collector/issues/10802
https://github.com/open-telemetry/opentelemetry-collector/issues/10810
2024-08-07 16:02:55 -07:00
Tyler Helmuth 2b9697fe09
[confmap] Deprecate expandconverter (#10510)
#### Description
This PR deprecates `expandconverter` and removes its use from
`otelcoltest.LoadConfig` and OCB.

This cannot be merged until the `confmap.unifyEnvVarExpansion` [feature
gate is made
stable](https://github.com/open-telemetry/opentelemetry-collector/pull/10508).

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

---------

Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
Co-authored-by: Dmitrii Anoshin <anoshindx@gmail.com>
2024-08-07 15:55:09 -07:00
Alex Boten 981657bc20
[chore] update workflow to add changelog before pushing (#10832)
This prevents the workflow from trying to push to an existing branch
which it doesn't have permissions to do.

An example of the failure can be found here:
https://github.com/open-telemetry/opentelemetry-collector/actions/runs/10291429328/job/28483659786

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2024-08-07 14:25:28 -07:00
Alex Boten b688e7a6fc
[semconv] update template to remove deprecated semconv attributes (#10829)
This PR is updating the jinja template to ignore deprecated attributes
as was done in
https://github.com/open-telemetry/opentelemetry-go/pull/5476.
Additonally, generate v1.26.0 semconv package

This replaces
https://github.com/open-telemetry/opentelemetry-collector/pull/10249

Fixes
https://github.com/open-telemetry/opentelemetry-collector/issues/10813

NOTE: This leaves empty resource/trace/event files, but I'd rather not
remove the methods they expose in this change

---------

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2024-08-07 13:35:19 -07:00
Tyler Helmuth 91d6525f52
[confmap] Set confmap.unifyEnvVarExpansion feature gate to stable (#10508)
#### Description

This PR promotes the `confmap.unifyEnvVarExpansion` feature gate to
stable and sets a `ToVersion` of `v0.106.0`, anticipating that the gate
be completely removed in that version.

We should weigh if switching the Stable should be done in `v0.105.0` or
if it needs more time in `Beta` to give users more time to switch.
Delaying promotion to `Stable` delays confmap 1.0.

If we merge this we need to commit to merging
https://github.com/open-telemetry/opentelemetry-collector/pull/10510 in
the same release.

#### Link to tracking issue
Related to
https://github.com/open-telemetry/opentelemetry-collector/issues/10161
Related to
https://github.com/open-telemetry/opentelemetry-collector/issues/7111
Related to
https://github.com/open-telemetry/opentelemetry-collector/issues/8215

---------

Co-authored-by: Evan Bradley <11745660+evan-bradley@users.noreply.github.com>
2024-08-07 13:31:17 -07:00
Antoine Toulme c469394c52
[exporterhelper] delete deprecated `exporterhelper.ObsReport` (#10779)
#### Description
Delete deprecated `exporterhelper.ObsReport` and
`exporterhelper.NewObsReport`

#### Link to tracking issue
Relates to
https://github.com/open-telemetry/opentelemetry-collector/issues/10592
2024-08-07 10:45:13 -07:00
renovate[bot] 3396d0b511
Update module golang.org/x/tools to v0.24.0 (#10823)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| golang.org/x/tools | `v0.23.0` -> `v0.24.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2ftools/v0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/golang.org%2fx%2ftools/v0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/golang.org%2fx%2ftools/v0.23.0/v0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2ftools/v0.23.0/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.

---

### Configuration

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

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

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

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

---

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

---

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

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

---------

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2024-08-07 10:43:42 -07:00
Evan Bradley 94199c8952
[chore][docs/rfc] Add RFC on confmap Provider configuration goals (#10776)
#### Description

This is a stripped-down version of
https://github.com/open-telemetry/opentelemetry-collector/pull/10121
that eschews implementation details in favor of answering questions
about _what_ we want to achieve instead of how we will achieve it. A
section from that PR has been reproduced here to cover a few approaches
for future discussions.
2024-08-07 10:43:12 -07:00