Skip to content

Commit

Permalink
enable otlp http exporter integration test cases for all the testing … (
Browse files Browse the repository at this point in the history
#124)

* enable otlp http exporter integration test cases for all the testing platforms

* enable OTLP HTTP Exporter in the collector
  • Loading branch information
mxiamxia authored Nov 16, 2020
1 parent 68101e0 commit 7bb4dae
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions e2etest/testcases.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
]
2 changes: 2 additions & 0 deletions pkg/defaultcomponents/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -71,6 +72,7 @@ func Components() (component.Factories, error) {
loggingexporter.NewFactory(),
fileexporter.NewFactory(),
otlpexporter.NewFactory(),
otlphttpexporter.NewFactory(),
)
if err != nil {
errs = append(errs, err)
Expand Down
1 change: 1 addition & 0 deletions pkg/defaultcomponents/defaults_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7bb4dae

Please sign in to comment.