Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
36 changes: 34 additions & 2 deletions .chloggen/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,17 @@ components:
- exporter/otlp_grpc
- exporter/otlp_http
- extension/memory_limiter
- extension/xextension
- extension/xextension
- extension/zpages
- pdata/pprofile
- pkg/client
- pkg/component
- pkg/component/componentstatus
- pkg/component/componenttest
- pkg/config/configauth
- pkg/config/configcompression
- pkg/config/configgrpc
- pkg/config/confighttp
- pkg/config/confighttp/xconfighttp
- pkg/config/configmiddleware
- pkg/config/confignet
- pkg/config/configopaque
Expand All @@ -36,21 +39,50 @@ components:
- pkg/config/configtelemetry
- pkg/config/configtls
- pkg/confmap
- pkg/connector
- pkg/connector/connectortest
- pkg/consumer
- pkg/consumer/consumererror
- pkg/consumer/consumertest
- pkg/exporter
- pkg/exporter/exportertest
- pkg/exporterhelper
- pkg/extension
- pkg/extension/extensiontest
- pkg/extensionauth
- pkg/extensionauth/extensionauthtest
- pkg/extensioncapabilities
- pkg/extensionmiddleware
- pkg/extensionmiddleware/extensionmiddlewaretest
- pkg/featuregate
- pkg/filter
- pkg/otelcol
- pkg/otelcol/otelcoltest
- pkg/pdata
- pkg/pipeline
- pkg/processor
- pkg/processor/processortest
- pkg/processorhelper
- pkg/queuebatch
- pkg/receiver
- pkg/receiver/receivertest
- pkg/receiverhelper
- pkg/scraper
- pkg/scraper/scrapertest
- pkg/scraperhelper
- pkg/service
- pkg/service/hostcapabilities
- pkg/service/telemetry/telemetrytest
- pkg/xconfmap
- pkg/xconnector
- pkg/xexporter
- pkg/xexporterhelper
- pkg/xextension
- pkg/xextension/storage
- pkg/xpdata
- pkg/xpipeline
- pkg/xprocessor
- pkg/xprocessorhelper
- pkg/xreceiver
- pkg/xscraper
- pkg/xscraperhelper
Expand Down
6 changes: 6 additions & 0 deletions client/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: client
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: pkg
40 changes: 0 additions & 40 deletions cmd/mdatagen/internal/metadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
package internal

import (
"io/fs"
"path/filepath"
"slices"
"testing"

"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -194,43 +191,6 @@ func TestValidate(t *testing.T) {
}
}

func TestValidateMetricDuplicates(t *testing.T) {
Copy link
Copy Markdown
Contributor Author

@evan-bradley evan-bradley Feb 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is a holdover from when mdatagen was hosted in contrib. The Git blame on this shows it hasn't been touched since it was copied to core.

The test doesn't make any sense for this repo (the callout components in allowedMetrics are contrib components), so I think we're better off just removing it.

allowedMetrics := map[string][]string{
"container.cpu.utilization": {"docker_stats", "kubeletstats"},
"container.memory.rss": {"docker_stats", "kubeletstats"},
"container.uptime": {"docker_stats", "kubeletstats"},
}
allMetrics := map[string][]string{}
err := filepath.Walk("../../../receiver", func(path string, info fs.FileInfo, _ error) error {
if info.Name() == "metadata.yaml" {
md, err := LoadMetadata(path)
require.NoError(t, err)
if len(md.Metrics) > 0 {
for metricName := range md.Metrics {
allMetrics[md.Type] = append(allMetrics[md.Type], string(metricName))
}
}
}
return nil
})
require.NoError(t, err)

seen := make(map[string]string)
for receiver, metrics := range allMetrics {
for _, metricName := range metrics {
if val, exists := seen[metricName]; exists {
receivers, allowed := allowedMetrics[metricName]
assert.Truef(
t,
allowed && slices.Contains(receivers, receiver) && slices.Contains(receivers, val),
"Duplicate metric %v in receivers %v and %v. Please validate that this is intentional by adding the metric name and receiver types in the allowedMetrics map in this test\n", metricName, receiver, val,
)
}
seen[metricName] = receiver
}
}
}

func TestSupportsSignal(t *testing.T) {
md := Metadata{}
assert.False(t, md.supportsSignal("logs"))
Expand Down
6 changes: 6 additions & 0 deletions component/componentstatus/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: component/componentstatus
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: pkg
6 changes: 6 additions & 0 deletions component/componenttest/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: component/componenttest
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: pkg
6 changes: 6 additions & 0 deletions component/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: component
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: pkg
6 changes: 6 additions & 0 deletions config/confighttp/xconfighttp/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: config/confighttp/xconfighttp
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: pkg
6 changes: 6 additions & 0 deletions confmap/xconfmap/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: xconfmap
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: pkg
6 changes: 6 additions & 0 deletions connector/connectortest/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: connector/connectortest
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: pkg
6 changes: 6 additions & 0 deletions connector/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: connector
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: pkg
6 changes: 6 additions & 0 deletions consumer/consumererror/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: consumer/consumererror
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: pkg
6 changes: 6 additions & 0 deletions consumer/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: consumer
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: pkg
6 changes: 6 additions & 0 deletions exporter/exportertest/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: exporter/exportertest
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: pkg
6 changes: 6 additions & 0 deletions exporter/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: exporter
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: pkg
6 changes: 6 additions & 0 deletions extension/extensionauth/extensionauthtest/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: extensionauth/extensionauthtest
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: pkg
6 changes: 6 additions & 0 deletions extension/extensionauth/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: extensionauth
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: pkg
6 changes: 6 additions & 0 deletions extension/extensioncapabilities/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: extensioncapabilities
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: pkg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: extensionmiddleware/extensionmiddlewaretest
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: pkg
6 changes: 6 additions & 0 deletions extension/extensionmiddleware/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: extensionmiddleware
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: pkg
6 changes: 6 additions & 0 deletions extension/extensiontest/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: extension/extensiontest
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: pkg
6 changes: 6 additions & 0 deletions extension/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: extension
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: pkg
2 changes: 1 addition & 1 deletion extension/xextension/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: extension
class: pkg
codeowners:
stability:
development: [profiles]
4 changes: 2 additions & 2 deletions extension/xextension/storage/metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
type: xextension
type: xextension/storage
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: extension
class: pkg
codeowners:
active:
- swiatekm
Expand Down
6 changes: 6 additions & 0 deletions featuregate/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: featuregate
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: pkg
6 changes: 6 additions & 0 deletions filter/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: filter
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: pkg
6 changes: 6 additions & 0 deletions otelcol/otelcoltest/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: otelcol/otelcoltest
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: pkg
6 changes: 6 additions & 0 deletions pipeline/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: pipeline
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: pkg
6 changes: 6 additions & 0 deletions pipeline/xpipeline/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: xpipeline
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: pkg
6 changes: 6 additions & 0 deletions processor/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: processor
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: pkg
6 changes: 6 additions & 0 deletions processor/processorhelper/xprocessorhelper/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: xprocessorhelper
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: pkg
6 changes: 6 additions & 0 deletions processor/processortest/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: processor/processortest
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: pkg
6 changes: 6 additions & 0 deletions receiver/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: receiver
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: pkg
6 changes: 6 additions & 0 deletions receiver/receivertest/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: receiver/receivertest
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: pkg
6 changes: 6 additions & 0 deletions scraper/scrapertest/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: scraper/scrapertest
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: pkg
6 changes: 6 additions & 0 deletions service/hostcapabilities/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: service/hostcapabilities
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: pkg
6 changes: 6 additions & 0 deletions service/telemetry/telemetrytest/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: service/telemetry/telemetrytest
github_project: open-telemetry/opentelemetry-collector

status:
disable_codecov_badge: true
class: pkg
Loading