diff --git a/e2etest/testcases.json b/e2etest/testcases.json index d73343047e..fcb99f73d0 100644 --- a/e2etest/testcases.json +++ b/e2etest/testcases.json @@ -18,5 +18,13 @@ { "case_name": "ecsmetrics", "platforms": ["ECS"] + }, + { + "case_name": "otlp_http_exporter_metric_mock", + "platforms": ["EC2", "ECS", "EKS", "LOCAL", "SOAKING", "NEG_SOAKING"] + }, + { + "case_name": "otlp_http_exporter_trace_mock", + "platforms": ["EC2", "ECS", "EKS", "LOCAL", "SOAKING", "NEG_SOAKING"] } ] diff --git a/pkg/defaultcomponents/defaults.go b/pkg/defaultcomponents/defaults.go index f09e51cb64..9ba6ecc94b 100644 --- a/pkg/defaultcomponents/defaults.go +++ b/pkg/defaultcomponents/defaults.go @@ -26,6 +26,7 @@ import ( "go.opentelemetry.io/collector/exporter/fileexporter" "go.opentelemetry.io/collector/exporter/loggingexporter" "go.opentelemetry.io/collector/exporter/otlpexporter" + "go.opentelemetry.io/collector/exporter/otlphttpexporter" "go.opentelemetry.io/collector/exporter/prometheusexporter" "go.opentelemetry.io/collector/receiver/otlpreceiver" "go.opentelemetry.io/collector/receiver/prometheusreceiver" @@ -71,6 +72,7 @@ func Components() (component.Factories, error) { loggingexporter.NewFactory(), fileexporter.NewFactory(), otlpexporter.NewFactory(), + otlphttpexporter.NewFactory(), ) if err != nil { errs = append(errs, err) diff --git a/pkg/defaultcomponents/defaults_test.go b/pkg/defaultcomponents/defaults_test.go index c46e764da5..c58a042071 100644 --- a/pkg/defaultcomponents/defaults_test.go +++ b/pkg/defaultcomponents/defaults_test.go @@ -31,6 +31,7 @@ func TestComponents(t *testing.T) { // core exporters assert.True(t, exporters["logging"] != nil) assert.True(t, exporters["otlp"] != nil) + assert.True(t, exporters["otlphttp"] != nil) receivers := factories.Receivers assert.True(t, receivers["otlp"] != nil)