Skip to content

Commit

Permalink
enable OTLP HTTP Exporter in the collector
Browse files Browse the repository at this point in the history
  • Loading branch information
mxiamxia committed Nov 16, 2020
1 parent eac66ff commit 94bb0db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
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 94bb0db

Please sign in to comment.