From 4f6989412c24fcf8f44a4bd68accc66c92c4c83f Mon Sep 17 00:00:00 2001 From: songy23 Date: Fri, 2 Aug 2019 10:45:15 -0700 Subject: [PATCH] Add tailsampling processor to defaults --- defaults/defaults.go | 2 ++ defaults/defaults_test.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/defaults/defaults.go b/defaults/defaults.go index 99dad5b8cb8..c388f6ff5bf 100644 --- a/defaults/defaults.go +++ b/defaults/defaults.go @@ -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" @@ -72,6 +73,7 @@ func Components() ( &attributekeyprocessor.Factory{}, &queued.Factory{}, &nodebatcher.Factory{}, + &tailsampling.Factory{}, ) if err != nil { errs = append(errs, err) diff --git a/defaults/defaults_test.go b/defaults/defaults_test.go index e3238b4217f..f8e884dd850 100644 --- a/defaults/defaults_test.go +++ b/defaults/defaults_test.go @@ -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" @@ -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{},