Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
ea88ccf
Add component event attributes to serialized output
iblancasa Nov 25, 2025
ab95288
Merge branch 'main' of github.com:open-telemetry/opentelemetry-collec…
iblancasa Dec 2, 2025
520fb51
Apply changes requested during code review
iblancasa Dec 2, 2025
3d6fb92
Fix ci
iblancasa Dec 2, 2025
7ebcfeb
Add component event attributes to serialized output
iblancasa Dec 18, 2025
915e47f
Add component event attributes to serialized output
iblancasa Dec 19, 2025
7d8855a
Merge branch '43606' of github.com:iblancasa/opentelemetry-collector-…
iblancasa Jan 7, 2026
d985956
Merge branch '43606' of github.com:iblancasa/opentelemetry-collector-…
iblancasa Jan 7, 2026
ca673d7
Merge branch 'main' of github.com:open-telemetry/opentelemetry-collec…
iblancasa Jan 7, 2026
a6b0513
Fix CI
iblancasa Jan 7, 2026
f3cd5ca
Merge branch 'main' into 43606
iblancasa Jan 7, 2026
ea186db
Merge branch '43606' of github.com:iblancasa/opentelemetry-collector-…
iblancasa Jan 19, 2026
6495e58
Merge branch 'main' of github.com:open-telemetry/opentelemetry-collec…
iblancasa Jan 19, 2026
67c2a0a
Merge branch 'main' of github.com:open-telemetry/opentelemetry-collec…
iblancasa Jan 22, 2026
4c5e6ba
Merge branch 'main' into 43606
iblancasa Jan 23, 2026
3fa09ff
Merge branch '43606' of github.com:iblancasa/opentelemetry-collector-…
iblancasa Jan 26, 2026
2e7513b
Merge branch 'main' of github.com:open-telemetry/opentelemetry-collec…
iblancasa Jan 26, 2026
7a2558e
Merge branch 'main' into 43606
iblancasa Jan 27, 2026
28fd18d
Merge branch 'main' into 43606
iblancasa Jan 29, 2026
3a4ab19
Merge branch 'main' into 43606
iblancasa Jan 30, 2026
bfa8ee2
Merge branch 'main' of github.com:open-telemetry/opentelemetry-collec…
iblancasa Feb 5, 2026
c8e2289
Merge branch '43606' of github.com:iblancasa/opentelemetry-collector-…
iblancasa Feb 5, 2026
bde0bde
Merge branch '43606' of github.com:iblancasa/opentelemetry-collector-…
iblancasa Feb 6, 2026
19744cf
Merge branch 'main' of github.com:open-telemetry/opentelemetry-collec…
iblancasa Feb 6, 2026
0dfc675
Merge branch 'main' into 43606
iblancasa Feb 9, 2026
1065658
Merge branch 'main' into 43606
iblancasa Feb 10, 2026
7e09cb5
Merge branch '43606' of github.com:iblancasa/opentelemetry-collector-…
iblancasa Feb 16, 2026
3cd5923
Merge branch 'main' of github.com:open-telemetry/opentelemetry-collec…
iblancasa Feb 16, 2026
4fafc8e
Merge branch 'main' into 43606
iblancasa Feb 17, 2026
0d06bc2
Merge branch '43606' of github.com:iblancasa/opentelemetry-collector-…
iblancasa Feb 19, 2026
febb5f6
Merge branch 'main' of github.com:open-telemetry/opentelemetry-collec…
iblancasa Feb 19, 2026
574290c
Merge branch '43606' of github.com:iblancasa/opentelemetry-collector-…
iblancasa Feb 23, 2026
0eb0f43
Merge branch 'main' of github.com:open-telemetry/opentelemetry-collec…
iblancasa Feb 23, 2026
d5b9fb7
Merge branch 'main' into 43606
iblancasa Feb 26, 2026
3665122
Merge branch 'main' into 43606
iblancasa Feb 26, 2026
705e831
Merge branch '43606' of github.com:iblancasa/opentelemetry-collector-…
iblancasa Mar 3, 2026
545cab6
Merge branch 'main' of github.com:open-telemetry/opentelemetry-collec…
iblancasa Mar 3, 2026
404b362
Apply changes requested in code review
iblancasa Mar 3, 2026
dfd2209
Merge branch 'main' into 43606
iblancasa Mar 3, 2026
54362b0
Merge branch '43606' of github.com:iblancasa/opentelemetry-collector-…
iblancasa Mar 3, 2026
b4f76e6
Fix changelog
iblancasa Mar 3, 2026
ee1690c
Fix changelog
iblancasa Mar 3, 2026
bdefb61
Merge branch 'main' into 43606
iblancasa Mar 3, 2026
d2a7ef2
Merge branch 'main' into 43606
iblancasa Mar 4, 2026
100d98a
Merge branch '43606' of github.com:iblancasa/opentelemetry-collector-…
iblancasa Mar 16, 2026
984ea00
Revert breaking change
iblancasa Mar 16, 2026
28be7a8
Merge branch 'main' of github.com:open-telemetry/opentelemetry-collec…
iblancasa Mar 16, 2026
184d3f7
Revert unwanted changes
iblancasa Mar 16, 2026
7b5b7ef
Merge branch 'main' into 43606
iblancasa Mar 16, 2026
96ffab6
Merge remote-tracking branch 'upstream/main' into 43606
evan-bradley Mar 22, 2026
49d643a
Use pseudo-versions
evan-bradley Mar 22, 2026
6dcca70
go mod tidy
evan-bradley Mar 22, 2026
2ab7cdc
Merge branch 'main' into 43606
evan-bradley Mar 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .chloggen/43606-1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Use this changelog template to create an entry for release notes.

# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: 'enhancement'

# The name of the component, or a single word describing the area of concern, (e.g. receiver/filelog)
component: extension/health_check

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Add component event attributes to serialized output.

# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
issues: [43606]

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext: |
When `http.status.include_attributes` is enabled in the healthcheckv2 extension (with `use_v2: true`),
users will see additional attributes in the status output. These attributes provide more
context about component states, including details like error messages and affected components.
For example:
```json
{
"healthy": false,
"status": "error",
"attributes": {
"error_msg": "not enough permissions to read cpu data",
"scrapers": ["cpu", "memory", "network"]
}
}
```

# If your change doesn't affect end users or the exported elements of any package,
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
# Optional: The change log or logs in which this entry should be included.
# e.g. '[user]' or '[user, api]'
# Include 'user' if the change is relevant to end users.
# Include 'api' if there is a change to a library API.
# Default: '[user]'
change_logs: [user]
41 changes: 41 additions & 0 deletions .chloggen/43606.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Use this changelog template to create an entry for release notes.

# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: 'enhancement'

# The name of the component, or a single word describing the area of concern, (e.g. receiver/filelog)
component: extension/healthcheckv2

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Add component event attributes to serialized output.

# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
issues: [43606]

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext: |
When `http.status.include_attributes` is enabled in the healthcheckv2 extension (with `use_v2: true`),
users will see additional attributes in the status output. These attributes provide more
context about component states, including details like error messages and affected components.
For example:
```json
{
"healthy": false,
"status": "error",
"attributes": {
"error_msg": "not enough permissions to read cpu data",
"scrapers": ["cpu", "memory", "network"]
}
}
```

# If your change doesn't affect end users or the exported elements of any package,
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
# Optional: The change log or logs in which this entry should be included.
# e.g. '[user]' or '[user, api]'
# Include 'user' if the change is relevant to end users.
# Include 'api' if there is a change to a library API.
# Default: '[user]'
change_logs: [user]
4 changes: 2 additions & 2 deletions extension/healthcheckextension/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/open-telemetry/opentelemetry-collector-contrib/extension/healt
go 1.25.0

require (
github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.148.0
github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.148.1-0.20260320051400-372cc483b303
github.com/open-telemetry/opentelemetry-collector-contrib/internal/healthcheck v0.148.0
github.com/stretchr/testify v1.11.1
go.opentelemetry.io/collector/component v1.54.1-0.20260320051400-372cc483b303
Expand Down Expand Up @@ -48,7 +48,7 @@ require (
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect
github.com/mostynb/go-grpc-compression v1.2.3 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/status v0.148.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/status v0.148.1-0.20260320051400-372cc483b303 // indirect
github.com/pierrec/lz4/v4 v4.1.26 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/rs/cors v1.11.1 // indirect
Expand Down
23 changes: 14 additions & 9 deletions extension/healthcheckv2extension/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ extensions:
status:
enabled: true
path: "/health/status"
include_attributes: true
config:
enabled: true
path: "/health/config"
Expand Down Expand Up @@ -171,7 +172,8 @@ status to HTTP status is as follows:

The response body contains either a detailed, or non-detailed view into collector or pipeline health
in JSON format. The level of detail applies to the contents of the response body and is controlled
by passing `verbose` as a query parameter.
by the `verbose` query parameter. Component event attributes are included when
`http.status.include_attributes` is set to `true`, regardless of whether the response is detailed.

###### Error Precedence

Expand All @@ -192,8 +194,8 @@ collector health.
**Verbose Example**

Assuming the health check extension is configured with `http.status.endpoint` set to
`localhost:13133` a request to `http://localhost:13133/status?verbose` will have a
response body such as:
`localhost:13133`, a request to `http://localhost:13133/status?verbose`
will have a response body such as:

```json
{
Expand Down Expand Up @@ -274,8 +276,10 @@ Note the following based on this response:

**Non-verbose Response example**

If the same request is made to a collector without setting the verbose flag, only the overall status
will be returned. The pipeline and component level statuses will be omitted.
If the same request is made without the `verbose` query parameter, only the overall
status will be returned. The pipeline and component level statuses will be omitted. If
`http.status.include_attributes` is enabled, the overall status will also include an `attributes`
field.

```json
{
Expand All @@ -297,8 +301,8 @@ pipeline.
**Verbose Response Example**

Assuming the health check extension is configured with `http.status.endpoint` set to
`localhost:13133` a request to `http://localhost:13133/status?pipeline=traces/http&verbose` will have
a response body such as:
`localhost:13133`, a request to
`http://localhost:13133/status?pipeline=traces/http&verbose` will have a response body such as:


```json
Expand Down Expand Up @@ -329,8 +333,9 @@ a response body such as:

**Non-detailed Response Example**

If the same request is made without the verbose flag, only the overall pipeline status will be
returned. The component level statuses will be omitted.
If the same request is made without the `verbose` query parameter, only the overall pipeline status
will be returned. The component level statuses will be omitted. If `http.status.include_attributes`
is enabled, the overall status will also include an `attributes` field.

```json
{
Expand Down
4 changes: 2 additions & 2 deletions extension/healthcheckv2extension/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/open-telemetry/opentelemetry-collector-contrib/extension/healt
go 1.25.0

require (
github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.148.0
github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.148.1-0.20260320051400-372cc483b303
github.com/open-telemetry/opentelemetry-collector-contrib/internal/healthcheck v0.148.0
github.com/stretchr/testify v1.11.1
go.opentelemetry.io/collector/component v1.54.1-0.20260320051400-372cc483b303
Expand Down Expand Up @@ -44,7 +44,7 @@ require (
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect
github.com/mostynb/go-grpc-compression v1.2.3 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/status v0.148.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/status v0.148.1-0.20260320051400-372cc483b303 // indirect
github.com/pierrec/lz4/v4 v4.1.26 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rs/cors v1.11.1 // indirect
Expand Down
5 changes: 5 additions & 0 deletions extension/opampextension/opamp_agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (
"go.opentelemetry.io/collector/confmap/confmaptest"
"go.opentelemetry.io/collector/extension"
"go.opentelemetry.io/collector/extension/extensiontest"
"go.opentelemetry.io/collector/pdata/pcommon"
"go.opentelemetry.io/collector/pipeline"
"go.opentelemetry.io/collector/service"
"go.uber.org/zap"
Expand Down Expand Up @@ -985,6 +986,10 @@ func (m mockStatusEvent) Timestamp() time.Time {
return m.timestamp
}

func (mockStatusEvent) Attributes() pcommon.Map {
return pcommon.NewMap()
}

func newTestOpampAgent(cfg *Config, set extension.Settings, mockOpampClient *mockOpAMPClient, sa *mockStatusAggregator) *opampAgent {
uid := uuid.New()
o := &opampAgent{
Expand Down
5 changes: 3 additions & 2 deletions internal/healthcheck/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,9 @@ func NewDefaultConfig() component.Config {
},
},
Status: http.PathConfig{
Enabled: true,
Path: "/status",
Enabled: true,
Path: "/status",
IncludeAttributes: false,
},
Config: http.PathConfig{
Enabled: false,
Expand Down
6 changes: 3 additions & 3 deletions internal/healthcheck/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module github.com/open-telemetry/opentelemetry-collector-contrib/internal/health
go 1.25.0

require (
github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.148.0
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/status v0.148.0
github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.148.1-0.20260320051400-372cc483b303
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/status v0.148.1-0.20260320051400-372cc483b303
github.com/stretchr/testify v1.11.1
go.opentelemetry.io/collector/component v1.54.1-0.20260320051400-372cc483b303
go.opentelemetry.io/collector/component/componentstatus v0.148.1-0.20260320051400-372cc483b303
Expand All @@ -16,6 +16,7 @@ require (
go.opentelemetry.io/collector/extension v1.54.1-0.20260320051400-372cc483b303
go.opentelemetry.io/collector/extension/extensioncapabilities v0.148.1-0.20260320051400-372cc483b303
go.opentelemetry.io/collector/extension/extensiontest v0.148.1-0.20260320051400-372cc483b303
go.opentelemetry.io/collector/pdata v1.54.1-0.20260320051400-372cc483b303
go.opentelemetry.io/collector/pipeline v1.54.1-0.20260320051400-372cc483b303
go.uber.org/goleak v1.3.0
go.uber.org/multierr v1.11.0
Expand Down Expand Up @@ -63,7 +64,6 @@ require (
go.opentelemetry.io/collector/extension/extensionmiddleware v0.148.1-0.20260320051400-372cc483b303 // indirect
go.opentelemetry.io/collector/featuregate v1.54.1-0.20260320051400-372cc483b303 // indirect
go.opentelemetry.io/collector/internal/componentalias v0.148.1-0.20260320051400-372cc483b303 // indirect
go.opentelemetry.io/collector/pdata v1.54.1-0.20260320051400-372cc483b303 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.67.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.67.0 // indirect
go.opentelemetry.io/otel v1.42.0 // indirect
Expand Down
5 changes: 3 additions & 2 deletions internal/healthcheck/internal/http/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ type Config struct {
}

type PathConfig struct {
Enabled bool `mapstructure:"enabled"`
Path string `mapstructure:"path"`
Enabled bool `mapstructure:"enabled"`
Path string `mapstructure:"path"`
IncludeAttributes bool `mapstructure:"include_attributes"`
}

// LegacyConfig contains the config for the original healthcheck extension. We plan to migrate
Expand Down
9 changes: 8 additions & 1 deletion internal/healthcheck/internal/http/package_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,12 @@ import (
)

func TestMain(m *testing.M) {
goleak.VerifyTestMain(m)
// These goroutines are part of the http.Client's connection pool management.
// They don't accept context.Context and are managed by the transport's lifecycle,
// not our test lifecycle. They'll be cleaned up when the transport is garbage collected.
opts := []goleak.Option{
goleak.IgnoreTopFunction("net/http.(*persistConn).writeLoop"),
goleak.IgnoreTopFunction("net/http.(*persistConn).readLoop"),
}
goleak.VerifyTestMain(m, opts...)
}
15 changes: 9 additions & 6 deletions internal/healthcheck/internal/http/responders.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,13 @@ func respondWithJSON(code int, content any, w http.ResponseWriter) error {
return wErr
}

func defaultResponder(startTimestamp *time.Time) responderFunc {
func defaultResponder(startTimestamp *time.Time, includeAttributes bool) responderFunc {
return func(st *status.AggregateStatus, w http.ResponseWriter) error {
code := responseCodes[st.Status()]
sst := toSerializableStatus(st, &serializationOptions{
includeStartTime: true,
startTimestamp: startTimestamp,
includeStartTime: true,
startTimestamp: startTimestamp,
includeAttributes: includeAttributes,
})
return respondWithJSON(code, sst, w)
}
Expand All @@ -65,6 +66,7 @@ func defaultResponder(startTimestamp *time.Time) responderFunc {
func componentHealthResponder(
startTimestamp *time.Time,
config *common.ComponentHealthConfig,
includeAttributes bool,
) responderFunc {
healthyFunc := func(now *time.Time) func(status.Event) bool {
return func(ev status.Event) bool {
Expand All @@ -84,9 +86,10 @@ func componentHealthResponder(
sst := toSerializableStatus(
st,
&serializationOptions{
includeStartTime: true,
startTimestamp: startTimestamp,
healthyFunc: healthyFunc(&now),
includeStartTime: true,
startTimestamp: startTimestamp,
healthyFunc: healthyFunc(&now),
includeAttributes: includeAttributes,
},
)

Expand Down
29 changes: 21 additions & 8 deletions internal/healthcheck/internal/http/serialization.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ func (f healthyFunc) isHealthy(ev status.Event) bool {
}

type serializationOptions struct {
includeStartTime bool
startTimestamp *time.Time
healthyFunc healthyFunc
includeStartTime bool
startTimestamp *time.Time
healthyFunc healthyFunc
includeAttributes bool
}

type serializableStatus struct {
Expand All @@ -34,10 +35,11 @@ type serializableStatus struct {

// SerializableEvent is exported for json.Unmarshal
type SerializableEvent struct {
Healthy bool `json:"healthy"`
StatusString string `json:"status"`
Error string `json:"error,omitempty"`
Timestamp time.Time `json:"status_time"`
Healthy bool `json:"healthy"`
StatusString string `json:"status"`
Error string `json:"error,omitempty"`
Timestamp time.Time `json:"status_time"`
Attributes map[string]any `json:"attributes"`
}

var stringToStatusMap = map[string]componentstatus.Status{
Expand All @@ -58,12 +60,22 @@ func (ev *SerializableEvent) Status() componentstatus.Status {
return componentstatus.StatusNone
}

func toSerializableEvent(ev status.Event, isHealthy bool) *SerializableEvent {
func toSerializableEvent(ev status.Event, isHealthy, includeAttributes bool) *SerializableEvent {
se := &SerializableEvent{
Healthy: isHealthy,
StatusString: ev.Status().String(),
Timestamp: ev.Timestamp(),
Attributes: map[string]any{},
}

if includeAttributes {
attrs := ev.Attributes()
attrLen := attrs.Len()
if attrLen > 0 {
se.Attributes = attrs.AsRaw()
}
}

if ev.Err() != nil {
se.Error = ev.Err().Error()
}
Expand All @@ -78,6 +90,7 @@ func toSerializableStatus(
SerializableEvent: toSerializableEvent(
st.Event,
opts.healthyFunc.isHealthy(st.Event),
opts.includeAttributes,
),
ComponentStatuses: make(map[string]*serializableStatus),
}
Expand Down
8 changes: 6 additions & 2 deletions internal/healthcheck/internal/http/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,14 @@ func NewServer(

if legacyConfig.UseV2 {
srv.httpConfig = config.ServerConfig
includeAttributes := true // default for backward compatibility
if config.Status.Enabled {
includeAttributes = config.Status.IncludeAttributes
}
if componentHealthConfig != nil {
srv.responder = componentHealthResponder(&now, componentHealthConfig)
srv.responder = componentHealthResponder(&now, componentHealthConfig, includeAttributes)
} else {
srv.responder = defaultResponder(&now)
srv.responder = defaultResponder(&now, includeAttributes)
}
if config.Status.Enabled {
srv.mux.Handle(config.Status.Path, srv.statusHandler())
Expand Down
Loading
Loading