Commit Graph

335 Commits

Author SHA1 Message Date
Bogdan Drutu 96f9a354d2
[chore] Prepare release v1.37.0/v0.131.0 (#13510)
The following commands were run to prepare this release:

make chlog-update VERSION=v1.37.0/v0.131.0
make prepare-release PREVIOUS_VERSION=1[.]36[.]1
RELEASE_CANDIDATE=1.37.0 MODSET=stable
make prepare-release PREVIOUS_VERSION=0[.]130[.]1
RELEASE_CANDIDATE=0.131.0 MODSET=beta

---------

Co-authored-by: otelbot <197425009+otelbot@users.noreply.github.com>
2025-07-28 23:54:40 +00:00
Antoine Toulme b5f3b1dea2
[builder] Remove undocumented handling of `DIST_*` environment variables replacements (#13493)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Remove undocumented handling of `DIST_*` environment variables
replacements

<!-- Issue number if applicable -->
#### Link to tracking issue
Fixes #13335
2025-07-26 22:57:37 +00:00
Matthieu MOREL 84e29958f1
[chore]: enable-all rules from go-critic (#13433)
#### Description

Enables all rules from
[go-critic](https://golangci-lint.run/usage/linters/#gocritic) by
default and disable the one that needs to be fixed

* https://go-critic.com/overview.html#appendcombine
* https://go-critic.com/overview.html#emptystringtest
* https://go-critic.com/overview.html#evalorder
* https://go-critic.com/overview.html#httpnobody
* https://go-critic.com/overview.html#nestingreduce
* https://go-critic.com/overview.html#regexpsimplify
* https://go-critic.com/overview.html#sloppyreassign
* https://go-critic.com/overview.html#sprintfquotedstring
* https://go-critic.com/overview.html#typeassertchain
* https://go-critic.com/overview.html#typeunparen

---------

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2025-07-24 10:34:03 +00:00
Pablo Baeyens ba583e0ae5
Merge release/v0.130.x into main (#13452) 2025-07-22 12:41:35 +02:00
Pablo Baeyens d588ee2ac4
[chore] Prepare release v0.130.1/v1.36.1 (#13441)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Prepares release v0.130.1/v1.36.1 to release #13429

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

Updates #13381
Relates to open-telemetry/opentelemetry-go/issues/7039

---------

Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
2025-07-22 11:05:41 +02:00
Don Inghram 13613a9807
collector builder should require go 1.23 as go.opentelemetry.io v1.36.0 requires go 1.23 (#13400)
<!--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 -->
#### Link to tracking issue
Fixes #

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

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

<!--Please delete paragraphs that you did not use before submitting.-->
2025-07-16 17:45:23 +00:00
OpenTelemetry Bot 91ec67dfc1
[chore] Prepare release v1.36.0/v0.130.0 (#13382)
The following commands were run to prepare this release:
- make chlog-update VERSION=v1.36.0/v0.130.0
- make prepare-release PREVIOUS_VERSION=1[.]35[.]0
RELEASE_CANDIDATE=1.36.0 MODSET=stable
- make prepare-release PREVIOUS_VERSION=0[.]129[.]0
RELEASE_CANDIDATE=0.130.0 MODSET=beta

---------

Co-authored-by: Pablo Baeyens <pablo.baeyens@datadoghq.com>
2025-07-14 13:03:41 +00:00
renovate[bot] 1d377cd3ca
Update module github.com/knadh/koanf/providers/env to v2 (#13304)
This PR contains the following updates:

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

---

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

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

---

### Release Notes

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

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

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

This is a major breaking change that ends koanf v1 (v1.5.0) and moves to
v2. Continued usage of v1 is unaffected. While koanf does not bundle
external dependencies into its core thereby avoiding them in the build,
a `go get` would still pull them and go.mod, bringing in unnecessary
references as all the providers and parsers were "sub" packages of the
main module.

This PR upgrades koanf to v2 and separates every single provider and
parser package into its own module, go.mod, and release tag (eg:
`providers/yaml/v0.1.0`). That is, one-repository, many modules. This
removes references to all indirect dependencies in the main koanf
package significantly de-cluttering it.

##### What changes?

- Going forward, koanf references should change to
`github.com/knadh/koanf/v2`.
- The required parsers and providers should be installed explicitly as
they do not come bundled with the main koanf package anymore. Eg: `go
get github.com/knadh/koanf/providers/s3`, `go get
github.com/knadh/koanf/parsers/json` etc.
- That's all. There is no change in functionality.

**Full Changelog**:
https://github.com/knadh/koanf/compare/v1.5.0...v2.0.0

</details>

---

### Configuration

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

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

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

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

---

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

---

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

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

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jade Guiton <jade.guiton@datadoghq.com>
2025-07-02 20:27:23 +00:00
OpenTelemetry Bot 8c7e0b7708
[chore] Prepare release v1.35.0/v0.129.0 (#13299)
The following commands were run to prepare this release:
- make chlog-update VERSION=v1.35.0/v0.129.0
- make prepare-release PREVIOUS_VERSION=1[.]34[.]0
RELEASE_CANDIDATE=1.35.0 MODSET=stable
- make prepare-release PREVIOUS_VERSION=0[.]128[.]0
RELEASE_CANDIDATE=0.129.0 MODSET=beta

---------

Co-authored-by: Jade Guiton <jade.guiton@datadoghq.com>
2025-06-30 11:51:14 +00:00
Dmitry Anoshin 3ef58fda95
[exporterhelper] Preserve request span context in the persistent queue (#13188)
Alternative to
https://github.com/open-telemetry/opentelemetry-collector/pull/13176
that doesn't involve custom encoder but exposes new public module
`pdata/xpdata/request`

The actual change set is pretty small. Most of the code is generated
protobuf
2025-06-16 04:37:40 +00:00
OpenTelemetry Bot ab80fb406a
[chore] Prepare release v1.34.0/v0.128.0 (#13180)
The following commands were run to prepare this release:
- make chlog-update VERSION=v1.34.0/v0.128.0
- make prepare-release PREVIOUS_VERSION=1[.]33[.]0
RELEASE_CANDIDATE=1.34.0 MODSET=stable
- make prepare-release PREVIOUS_VERSION=0[.]127[.]0
RELEASE_CANDIDATE=0.128.0 MODSET=beta
2025-06-09 16:08:43 +00:00
Pablo Baeyens e8ca607b79
[receiver/otlpreceiver] Use configoptional type (#13119)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

<!-- Issue number if applicable -->

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

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

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

#### Link to tracking issue
Fixes #12980
2025-06-05 11:06:33 +00:00
OpenTelemetry Bot 2353b750bd
[chore] Prepare release v1.33.0/v0.127.0 (#13094)
The following commands were run to prepare this release:
- make chlog-update VERSION=v1.33.0/v0.127.0
- make prepare-release PREVIOUS_VERSION=1[.]32[.]0
RELEASE_CANDIDATE=1.33.0 MODSET=stable
- make prepare-release PREVIOUS_VERSION=0[.]126[.]0
RELEASE_CANDIDATE=0.127.0 MODSET=beta
2025-05-26 19:18:37 +00:00
OpenTelemetry Bot c2431f0ec1
[chore] Prepare release v1.32.0/v0.126.0 (#13026)
The following commands were run to prepare this release:
- make chlog-update VERSION=v1.32.0/v0.126.0
- make prepare-release PREVIOUS_VERSION=1[.]31[.]0
RELEASE_CANDIDATE=1.32.0 MODSET=stable
- make prepare-release PREVIOUS_VERSION=0[.]125[.]0
RELEASE_CANDIDATE=0.126.0 MODSET=beta

---------

Co-authored-by: Dmitry Anoshin <anoshindx@gmail.com>
2025-05-13 05:00:49 +00:00
Alex Boten 4ca0f1829e
update semconv dependency to otelgo's semconv package (#12991)
This updates the calls to the collector's internal semconv package with
otelgo's instead. The main difference is how the keys can be used, they
will need to be cast as strings where they key name is needed, otherwise
it's not a huge change. This would allow us to stop producing our own
semconv package once contrib is moved as well.

Related to
https://github.com/open-telemetry/opentelemetry-collector/issues/10346,
https://github.com/open-telemetry/opentelemetry-collector/issues/11828,
https://github.com/open-telemetry/opentelemetry-collector/issues/11807

---------

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2025-05-09 19:04:08 +00:00
OpenTelemetry Bot 42a3ae04a7
[chore] Prepare release v1.31.0/v0.125.0 (#12936)
The following commands were run to prepare this release:
- make chlog-update VERSION=v1.31.0/v0.125.0
- make prepare-release PREVIOUS_VERSION=1[.]30[.]0
RELEASE_CANDIDATE=1.31.0 MODSET=stable
- make prepare-release PREVIOUS_VERSION=0[.]124[.]0
RELEASE_CANDIDATE=0.125.0 MODSET=beta
2025-04-28 19:04:17 +00:00
Joshua MacDonald 6993fa1585
Middleware: HTTP support (part 3/4) (#12845)
#### Description

Adds the HTTP middleware support from #12842.

#### Link to tracking issue

Part of #12603.

#### Testing

Yes.

#### Documentation

Added.
2025-04-18 20:21:37 +00:00
OpenTelemetry Bot cf18559059
[chore] Prepare release v1.30.0/v0.124.0 (#12834)
The following commands were run to prepare this release:
- make chlog-update VERSION=v1.30.0/v0.124.0
- make prepare-release PREVIOUS_VERSION=1[.]29[.]0
RELEASE_CANDIDATE=1.30.0 MODSET=stable
- make prepare-release PREVIOUS_VERSION=0[.]123[.]0
RELEASE_CANDIDATE=0.124.0 MODSET=beta
2025-04-14 19:00:26 +00:00
Matthieu MOREL 564818fd7f
[chore]: fix testifylint rules (#12791)
#### Description

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

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2025-04-02 23:10:07 +00:00
Tyler Helmuth 1ad6912e6c
[chore] Prepare release v1.29.0/v0.123.0 (#12773)
The following commands were run to prepare this release:

make chlog-update VERSION=v1.29.0/v0.123.0
make prepare-release PREVIOUS_VERSION=1.28.1 RELEASE_CANDIDATE=1.29.0
MODSET=stable
make prepare-release PREVIOUS_VERSION=0.122.1 RELEASE_CANDIDATE=0.123.0
MODSET=beta
2025-03-31 18:44:04 +00:00
Bogdan Drutu dae1d8edf4
[builder] Remove deprecated OtelColVersion, already an error if used (#12757)
As titled said, this is not a breaking change, since we only are going
to return a different error.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2025-03-28 16:33:11 +00:00
Pablo Baeyens 0654ae52dd
[processor/processorhelper] Split into separate module (#12695)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Split processorhelper into a separate module. Similar to #12512 in
motivation and shape

<!-- Issue number if applicable -->
#### Link to tracking issue
Fixes #12678
2025-03-24 10:17:25 +00:00
Evan Bradley a17839e865
[chore] Prepare release v1.28.1/v0.122.1 (#12665)
The following commands were run to prepare this release:

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

---------

Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
2025-03-18 13:57:04 -07:00
OpenTelemetry Bot 8bc15fd4d7
[chore] Prepare release v1.28.0/v0.122.0 (#12650)
The following commands were run to prepare this release:
- make chlog-update VERSION=v1.28.0/v0.122.0
- make prepare-release PREVIOUS_VERSION=1[.]27[.]0
RELEASE_CANDIDATE=1.28.0 MODSET=stable
- make prepare-release PREVIOUS_VERSION=0[.]121[.]0
RELEASE_CANDIDATE=0.122.0 MODSET=beta
2025-03-17 21:38:50 +00:00
Alex Boten 9de8cfd281
[chore] update min version in tidy (#12584)
This was missed in the upgrade of go1.24

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2025-03-07 18:33:06 +00:00
Pablo Baeyens d1f080535d
[receiverhelper] Split receiverhelper into a separate module (#12512)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Splits `receiverhelper` into a separate module.

<!-- Issue number if applicable -->
#### Link to tracking issue
Fixes #12514
2025-03-04 17:51:21 +00:00
OpenTelemetry Bot 9ff68e1d3b
[chore] Prepare release v1.27.0/v0.121.0 (#12534)
The following commands were run to prepare this release:
- make chlog-update VERSION=v1.27.0/v0.121.0
- make prepare-release PREVIOUS_VERSION=1[.]26[.]0
RELEASE_CANDIDATE=1.27.0 MODSET=stable
- make prepare-release PREVIOUS_VERSION=0[.]120[.]0
RELEASE_CANDIDATE=0.121.0 MODSET=beta
2025-03-03 16:27:02 +00:00
Israel Blancas 4397725dff
[processor/memorylimiter] Add profiles support to memorylimiter processor (#12454)
#### Description
Add profiles support to the memorylimiter processor.

#### Link to tracking issue
Fixes #12453

Signed-off-by: Israel Blancas <iblancasa@gmail.com>
2025-02-27 12:53:19 +00:00
Evan Bradley 42cdb5f4ed
[chore][cmd/builder] Improve main.go template formatting (#12503)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Puts the keys in `ConfigProviderSettings` to all be on their own lines
like the other keys in the struct.
2025-02-26 19:47:50 +00:00
John L. Peterson (Jack) 861fa203d7
[otelcol] add converters to components command (#12385)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Adds list of Converters to command `components`. Additionally, if this
is accepted, Converters must now implement `Type()` function as part of
interface. Given that there are no public converters in core or contrib
repos, I didn't feel like this would be a controversial change, and it
would be very easy for any private users of this interface to update
their code to support it.
<!-- Issue number if applicable -->
#### Link to tracking issue
Extends #11900

<!--Describe what testing was performed and which tests were added.-->
#### Testing
added test data to tests added in 11900, added test to collector_test.go

<!--Describe the documentation added.-->
#### Documentation
Changelog file
<!--Please delete paragraphs that you did not use before submitting.-->

---------

Co-authored-by: Pablo Baeyens <pablo.baeyens@datadoghq.com>
2025-02-26 11:57:17 +00:00
Pablo Baeyens 66e901c716
[extension] Deprecate extension/auth in favor of extension/extensionauth (#12478)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

- Deprecates `extension/auth` in favor of `extension/extensionauth`.
- Deprecates `extension/auth/authtest` in favor of
`extension/auth/authtest`
2025-02-25 22:39:53 +00:00
John L. Peterson (Jack) 4d927b97e1
[service] create service/hostcapabilities package (#12375)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
create `service/hostcapabilities` package to expose `GetModuleInfos()`
from service/host. Also moves getExporters interface for
`GetExporters()` to this package.
<!-- Issue number if applicable -->
#### Link to tracking issue
Addresses planned work from #12296

<!--Describe what testing was performed and which tests were added.-->
#### Testing
none, creates interface for existing function

<!--Describe the documentation added.-->
#### Documentation
changelog yaml
<!--Please delete paragraphs that you did not use before submitting.-->
2025-02-24 11:36:45 +00:00
OpenTelemetry Bot c87bda5bd0
[chore] Prepare release v1.26.0/v0.120.0 (#12412)
The following commands were run to prepare this release:
- make chlog-update VERSION=v1.26.0/v0.120.0
- make prepare-release PREVIOUS_VERSION=1[.]25[.]0
RELEASE_CANDIDATE=1.26.0 MODSET=stable
- make prepare-release PREVIOUS_VERSION=0[.]119[.]0
RELEASE_CANDIDATE=0.120.0 MODSET=beta
2025-02-18 00:10:21 +00:00
Jade Guiton 77f824660e
Make MakeFactoryMap generic and move to otelcol (#12220)
#### Description

At the moment, `receiver`, `scraper`, `processor`, `exporter`, and
`extension` each have their own version of the `MakeFactoryMap`
function, which takes a list of Factories and returns it as a map, with
the component name as the key (and an error if there is overlap).
Because all versions are near-identical except for the Factory type
used, and this function is only used in tests and in the code generated
by OCB (`components.go`), it was suggested to make it generic and move
it to the `otelcol` package.

This PR does exactly that. The old `MakeFactoryMap` functions are
deprecated (and may be removed alongside their tests in a future
release). I also had to make a few other odd changes to fit the new
dependency graph.

#### Link to tracking issue
Resolves #12222

---------

Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2025-02-13 11:47:22 +00:00
Pablo Baeyens f87b93a8f9
[chore] Move LoggerWithout temporarily to internal package (#12334)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Moves `LoggerWithout` to an internal package so that we can keep on
experimenting on it while mark component 1.0 on v0.121.0.

This does not need a changelog since the change has not been released

<!-- Issue number if applicable -->
#### Link to tracking issue
Updates #12217
2025-02-12 10:35:58 +00:00
Mackenzie aa333e9197
Ensure unique aliases (#12201)
#### Description
This PR ensures that unique aliases are used for modules with same
suffix.

#### Link to tracking issue
Fixes #12162


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

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

<!--Please delete paragraphs that you did not use before submitting.-->
2025-02-10 16:35:14 +00:00
Daniel Jaglowski 5d5fb21acf
Introduce component logger with appropriate attributes (#12259)
Implements the logger described in
https://github.com/open-telemetry/opentelemetry-collector/issues/12217

Alternative to #12057

Resolves #11814

`component/componentattribute`:
- Initializes new module
- Defines constants for component telemetry attribute keys
- Defines a `zapcore.Core` which can remove attributes from the root
logger

`service`:
- Rebases component instantiation on attribute sets
- Internal constructors for attribute sets for each component type
- Constructs loggers from `componentattribute`

`otlpreceiver`:
- Uses `componentattribute` to remove `otelcol.signal` attribute from
logger

`memorylimiter`:
- Uses `componentattribute` to remove `otelcol.signal`,
`otelcol.pipeline.id` and `otelcol.component.id` attributes from logger
2025-02-06 16:53:20 +00:00
Evan Bradley 0ac887e6b7
[xconfmap] Create module and add validation facilities (#12226)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Builds on
https://github.com/open-telemetry/opentelemetry-collector/pull/12224 and
starts the move of config validation from component to confmap. We can
keep this in `xconfmap` while we determine whether to add the ability to
validate using struct field tags.

I think this has the following advantages:
1. Everything configuration-related is now in confmap instead of split
between confmap and component.
2. We can share things like the mapstructure tag and config key
separator as constants between unmarshaling and validation without
creating dependencies between confmap and component.

~The one uncertainty this creates is what to do with `component.Config`,
which would now be used as a thin alias for `any` without any meaningful
usage in component.~

<!-- Issue number if applicable -->
#### Link to tracking issue
Fixes
https://github.com/open-telemetry/opentelemetry-collector/issues/11524
2025-02-04 22:25:59 +00:00
OpenTelemetry Bot 1565021f45
[chore] Prepare release v1.25.0/v0.119.0 (#12263)
The following commands were run to prepare this release:
- make chlog-update VERSION=v1.25.0/v0.119.0
- make prepare-release PREVIOUS_VERSION=1[.]24[.]0
RELEASE_CANDIDATE=1.25.0 MODSET=stable
- make prepare-release PREVIOUS_VERSION=0[.]118[.]0
RELEASE_CANDIDATE=0.119.0 MODSET=beta
2025-02-04 00:17:52 +00:00
Christos Markou e2d8b6b740
Add support for providers in components command (#11900)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
This PR adds support for printing config providers with the `components`
command.

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

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

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

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

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

---------

Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
2025-01-22 15:53:10 +00:00
Oussama Ben Ghorbel (Dainerx) 24da249cce
[chore] Ability to provide custom ld and gc flags (#11996)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

The primary purpose of this PR is to provide greater flexibility in how
OTEL binaries are built, enabling the inclusion of debugging symbols
when needed, without always stripping them by default.

Currently, debugging symbols are only retained when
debug_compilation=true. However, this approach also disables all
compiler inlining and optimizations (gcflags=all=-N -l) to ensure an
exact match between written and executed code, resulting in a
significant increase in CPU consumption. There are scenarios where we
want binaries with debugging symbols and DWARF information while still
allowing the compiler to optimize and inline. This PR addresses that
need by introducing configurable GCFlags.

`ocb --ldflags="" --gcflags="" --config=builder-config.yaml`

<!-- Issue number if applicable -->
#### Link to tracking issue
Fixes
[#58](https://github.com/open-telemetry/opentelemetry-collector-releases/issues/58)

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

Manual 

Override LDflags: 


![image](https://github.com/user-attachments/assets/6bcb0f7b-492a-45fb-a232-9c337afb5f5e)


Override both


![image](https://github.com/user-attachments/assets/00bc6c5f-37f0-438d-b4e1-f7a2d5833ec9)


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

README file updated.

-- 

Backward compatibility concerns: 
- As of today, passing cfg.LDFlags will append to LD flags that are by
default to `-s -w`.

Questions: 
- Should we deprecate DebugCompilation property? 
<!--Please delete paragraphs that you did not use before submitting.-->
2025-01-21 10:40:45 +00:00
Matthieu MOREL b6f379f6f4
[chore]: enable nolintlint (#12132)
#### Description

[nolintlint](https://golangci-lint.run/usage/linters/#nolintlint):
Reports ill-formed or insufficient nolint directives.
2025-01-21 10:23:27 +00:00
OpenTelemetry Bot e87797c1df
[chore] Prepare release v1.24.0/v0.118.0 (#12135)
The following commands were run to prepare this release:
- make chlog-update VERSION=v1.24.0/v0.118.0
- make prepare-release PREVIOUS_VERSION=1[.]23[.]0
RELEASE_CANDIDATE=1.24.0 MODSET=stable
- make prepare-release PREVIOUS_VERSION=0[.]117[.]0
RELEASE_CANDIDATE=0.118.0 MODSET=beta
2025-01-20 23:20:35 +00:00
Chao Weng 3132112d7d
Remove the deprecated receiver/scraperhelper package (#12054)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Removing the deprecated receiver/scraperhelper package

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

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

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

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

---------

Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2025-01-09 11:09:01 +00:00
OpenTelemetry Bot 795f727e05
[chore] Prepare release v1.23.0/v0.117.0 (#12043)
The following commands were run to prepare this release:
- make chlog-update VERSION=v1.23.0/v0.117.0
- make prepare-release PREVIOUS_VERSION=1[.]22[.]0
RELEASE_CANDIDATE=1.23.0 MODSET=stable
- make prepare-release PREVIOUS_VERSION=0[.]116[.]0
RELEASE_CANDIDATE=0.117.0 MODSET=beta

This PR also includes fix
https://github.com/open-telemetry/opentelemetry-collector/pull/12051 to
reduce back-and-forths

---------

Co-authored-by: Dmitrii Anoshin <anoshindx@gmail.com>
2025-01-07 22:54:22 +00:00
Bogdan Drutu d143b4cdc6
Deprecate extension/experimental in favor of extension/xextension (#12010)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2025-01-06 17:55:36 +00:00
Bogdan Drutu af09df1123
Move scraperhelper under scraper in a separate module (#11985)
Fixes
https://github.com/open-telemetry/opentelemetry-collector/issues/11003

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2025-01-06 17:17:55 +00:00
Christos Markou db7706ad5b
Remove warning when 0.0.0.0 is used (#11902)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Based on the discussions from
https://github.com/open-telemetry/opentelemetry-collector/issues/11713#issuecomment-2488357615
and
https://github.com/open-telemetry/opentelemetry-collector/issues/8510#issuecomment-1737598294
the warning message logged when `0.0.0.0` is used, should be removed.

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

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

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

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

/cc @mx-psi

---------

Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
2024-12-17 15:33:06 +00:00
Matthieu MOREL 869eec38f3
[chore]: enable partially thelper linter (#11895)
#### Description

[Thelper](https://golangci-lint.run/usage/linters/#thelper) detects
tests helpers which is not start with t.Helper() method.

This only enables rules for naming and paramter order

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2024-12-17 08:42:49 +00:00
Matthieu MOREL 68d1f93232
[chore]: use testify instead of testing.Fatal or testing.Error (#11896)
### Description

* uses testify instead of testing.Fatal or testing.Error in processor

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2024-12-16 23:15:33 +00:00