Skip to content

Commit a4ce1a4

Browse files
committed
Add E2E test to assert internal metrics
Signed-off-by: Israel Blancas <[email protected]>
1 parent 3711ca9 commit a4ce1a4

File tree

5 files changed

+471
-2
lines changed

5 files changed

+471
-2
lines changed

internal/e2e/go.mod

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module go.opentelemetry.io/collector/internal/e2e
33
go 1.23.0
44

55
require (
6+
github.com/prometheus/common v0.65.0
67
github.com/stretchr/testify v1.10.0
78
go.opentelemetry.io/collector v0.131.0
89
go.opentelemetry.io/collector/component v1.37.0
@@ -18,19 +19,26 @@ require (
1819
go.opentelemetry.io/collector/config/configtelemetry v0.131.0
1920
go.opentelemetry.io/collector/config/configtls v1.37.0
2021
go.opentelemetry.io/collector/confmap v1.37.0
22+
go.opentelemetry.io/collector/confmap/provider/envprovider v1.37.0
23+
go.opentelemetry.io/collector/confmap/provider/fileprovider v1.37.0
24+
go.opentelemetry.io/collector/confmap/provider/yamlprovider v1.37.0
2125
go.opentelemetry.io/collector/connector v0.131.0
2226
go.opentelemetry.io/collector/connector/connectortest v0.131.0
2327
go.opentelemetry.io/collector/consumer v1.37.0
2428
go.opentelemetry.io/collector/consumer/consumertest v0.131.0
2529
go.opentelemetry.io/collector/exporter v0.131.0
30+
go.opentelemetry.io/collector/exporter/debugexporter v0.130.1
2631
go.opentelemetry.io/collector/exporter/exportertest v0.131.0
2732
go.opentelemetry.io/collector/exporter/otlpexporter v0.131.0
2833
go.opentelemetry.io/collector/exporter/otlphttpexporter v0.131.0
2934
go.opentelemetry.io/collector/extension v1.37.0
3035
go.opentelemetry.io/collector/internal/sharedcomponent v0.131.0
36+
go.opentelemetry.io/collector/otelcol v0.131.0
3137
go.opentelemetry.io/collector/pdata v1.37.0
3238
go.opentelemetry.io/collector/pdata/testdata v0.131.0
3339
go.opentelemetry.io/collector/pipeline v0.131.0
40+
go.opentelemetry.io/collector/processor v1.37.0
41+
go.opentelemetry.io/collector/processor/batchprocessor v0.130.1
3442
go.opentelemetry.io/collector/receiver v1.37.0
3543
go.opentelemetry.io/collector/receiver/otlpreceiver v0.131.0
3644
go.opentelemetry.io/collector/receiver/receivertest v0.131.0
@@ -60,6 +68,7 @@ require (
6068
github.com/google/uuid v1.6.0 // indirect
6169
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.1 // indirect
6270
github.com/hashicorp/go-version v1.7.0 // indirect
71+
github.com/inconshreveable/mousetrap v1.1.0 // indirect
6372
github.com/json-iterator/go v1.1.12 // indirect
6473
github.com/klauspost/compress v1.18.0 // indirect
6574
github.com/knadh/koanf/maps v0.1.2 // indirect
@@ -77,17 +86,19 @@ require (
7786
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
7887
github.com/prometheus/client_golang v1.22.0 // indirect
7988
github.com/prometheus/client_model v0.6.2 // indirect
80-
github.com/prometheus/common v0.65.0 // indirect
8189
github.com/prometheus/procfs v0.17.0 // indirect
8290
github.com/rs/cors v1.11.1 // indirect
8391
github.com/shirou/gopsutil/v4 v4.25.6 // indirect
92+
github.com/spf13/cobra v1.9.1 // indirect
93+
github.com/spf13/pflag v1.0.6 // indirect
8494
github.com/tklauser/go-sysconf v0.3.12 // indirect
8595
github.com/tklauser/numcpus v0.6.1 // indirect
8696
github.com/yusufpapurcu/wmi v1.2.4 // indirect
8797
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
8898
go.opentelemetry.io/collector/client v1.37.0 // indirect
8999
go.opentelemetry.io/collector/config/configcompression v1.37.0 // indirect
90100
go.opentelemetry.io/collector/config/configmiddleware v0.131.0 // indirect
101+
go.opentelemetry.io/collector/confmap/xconfmap v0.131.0 // indirect
91102
go.opentelemetry.io/collector/connector/xconnector v0.131.0 // indirect
92103
go.opentelemetry.io/collector/consumer/consumererror v0.131.0 // indirect
93104
go.opentelemetry.io/collector/consumer/consumererror/xconsumererror v0.131.0 // indirect
@@ -105,7 +116,6 @@ require (
105116
go.opentelemetry.io/collector/pdata/pprofile v0.131.0 // indirect
106117
go.opentelemetry.io/collector/pdata/xpdata v0.131.0 // indirect
107118
go.opentelemetry.io/collector/pipeline/xpipeline v0.131.0 // indirect
108-
go.opentelemetry.io/collector/processor v1.37.0 // indirect
109119
go.opentelemetry.io/collector/processor/processortest v0.131.0 // indirect
110120
go.opentelemetry.io/collector/processor/xprocessor v0.131.0 // indirect
111121
go.opentelemetry.io/collector/receiver/receiverhelper v0.131.0 // indirect
@@ -138,6 +148,7 @@ require (
138148
go.uber.org/multierr v1.11.0 // indirect
139149
go.yaml.in/yaml/v3 v3.0.4 // indirect
140150
golang.org/x/crypto v0.40.0 // indirect
151+
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 // indirect
141152
golang.org/x/net v0.42.0 // indirect
142153
golang.org/x/sys v0.34.0 // indirect
143154
golang.org/x/text v0.27.0 // indirect
@@ -276,3 +287,9 @@ replace go.opentelemetry.io/collector/extension/extensionmiddleware => ../../ext
276287
replace go.opentelemetry.io/collector/config/configmiddleware => ../../config/configmiddleware
277288

278289
replace go.opentelemetry.io/collector/pdata/xpdata => ../../pdata/xpdata
290+
291+
replace go.opentelemetry.io/collector/exporter/debugexporter => ../../exporter/debugexporter
292+
293+
replace go.opentelemetry.io/collector/processor/batchprocessor => ../../processor/batchprocessor
294+
295+
replace go.opentelemetry.io/collector/confmap/provider/envprovider => ../../confmap/provider/envprovider

internal/e2e/go.sum

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)