Skip to content

Commit

Permalink
Add tailsampling processor to defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
songy23 committed Aug 2, 2019
1 parent 2be610e commit 4f69894
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions defaults/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
"github.com/open-telemetry/opentelemetry-service/processor/attributekeyprocessor"
"github.com/open-telemetry/opentelemetry-service/processor/nodebatcher"
"github.com/open-telemetry/opentelemetry-service/processor/queued"
"github.com/open-telemetry/opentelemetry-service/processor/tailsampling"
"github.com/open-telemetry/opentelemetry-service/receiver"
"github.com/open-telemetry/opentelemetry-service/receiver/jaegerreceiver"
"github.com/open-telemetry/opentelemetry-service/receiver/opencensusreceiver"
Expand Down Expand Up @@ -72,6 +73,7 @@ func Components() (
&attributekeyprocessor.Factory{},
&queued.Factory{},
&nodebatcher.Factory{},
&tailsampling.Factory{},
)
if err != nil {
errs = append(errs, err)
Expand Down
2 changes: 2 additions & 0 deletions defaults/defaults_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import (
"github.com/open-telemetry/opentelemetry-service/processor/attributekeyprocessor"
"github.com/open-telemetry/opentelemetry-service/processor/nodebatcher"
"github.com/open-telemetry/opentelemetry-service/processor/queued"
"github.com/open-telemetry/opentelemetry-service/processor/tailsampling"
"github.com/open-telemetry/opentelemetry-service/receiver"
"github.com/open-telemetry/opentelemetry-service/receiver/jaegerreceiver"
"github.com/open-telemetry/opentelemetry-service/receiver/opencensusreceiver"
Expand All @@ -54,6 +55,7 @@ func TestDefaultComponents(t *testing.T) {
"attribute-key": &attributekeyprocessor.Factory{},
"queued-retry": &queued.Factory{},
"batch": &nodebatcher.Factory{},
"tail-sampling": &tailsampling.Factory{},
}
expectedExporters := map[string]exporter.Factory{
"opencensus": &opencensusexporter.Factory{},
Expand Down

0 comments on commit 4f69894

Please sign in to comment.