From 7bb4dae51fa38990ed5bbc60727c7975323ce256 Mon Sep 17 00:00:00 2001 From: Min Xia Date: Mon, 16 Nov 2020 14:22:20 -0800 Subject: [PATCH] =?UTF-8?q?enable=20otlp=20http=20exporter=20integration?= =?UTF-8?q?=20test=20cases=20for=20all=20the=20testing=20=E2=80=A6=20(#124?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * enable otlp http exporter integration test cases for all the testing platforms * enable OTLP HTTP Exporter in the collector --- e2etest/testcases.json | 8 ++++++++ pkg/defaultcomponents/defaults.go | 2 ++ pkg/defaultcomponents/defaults_test.go | 1 + 3 files changed, 11 insertions(+) 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)