opentelemetry-collector/internal/e2e
Roger Coll b288271b77
[componentstatus] Add attributes map to Event (#13348)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Adds a `pcommon.Map` to the Event struct to represent additional
metadata from the producer. These attributes can be interpreted by
consumers, such as `Watcher` implementations like the healthcheckv2
extension.

Since the long-term goal is to replace Event with a pdata.Log
(OpenTelemetry Event), introducing attributes serves as an intermediary
step. This allows for experimentation with subcomponents and more
fine-grained events without immediately committing to a full migration.

It extends the `NewEvent` constructor in a backward compatible approach
with a new optional `...EventBuilderOption` parameter. The
EventBuilderOption is a sealed interface which is implemented with new
methods like `WithAttributes`.

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

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

Constructor unit tests, calls to generate Events from the internal graph
have not been modified.

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

<!--Please delete paragraphs that you did not use before submitting.-->
2025-08-07 09:02:36 +00:00
..
testdata [chore] Add E2E test to assert internal metrics (#13519) 2025-08-04 11:19:34 +00:00
Makefile
configauth_test.go
configgrpc_test.go
confighttp_test.go [confighttp] - Expose an option to set ForceAttemptHttp2 setting (#13426) 2025-07-30 20:49:34 +00:00
confignet_test.go
configtls_test.go
consume_contract_test.go
error_propagation_test.go [chore] Add tests for network code propagation with consumererror (#13424) 2025-07-21 15:39:57 +00:00
go.mod Update module github.com/shirou/gopsutil/v4 to v4.25.7 (#13567) 2025-08-05 19:01:55 +00:00
go.sum Update module github.com/shirou/gopsutil/v4 to v4.25.7 (#13567) 2025-08-05 19:01:55 +00:00
metric_stability_test.go [chore] Add E2E test to assert internal metrics (#13519) 2025-08-04 11:19:34 +00:00
opaque_test.go
otlphttp_test.go [chore]: enable extra-rules from gofumpt and paramTypeCombine from go-critic (#13479) 2025-07-30 14:57:53 +00:00
package_test.go
status_test.go [componentstatus] Add attributes map to Event (#13348) 2025-08-07 09:02:36 +00:00