@@ -97,9 +97,9 @@ Collector's components and pipelines.
9797touch config.yaml
9898```
9999
100- For now, you just need a basic traces pipeline with the ` otlp ` receiver, the
101- ` otlp ` and ` debug ` [ ^ 1 ] exporters, and optionally the ` batch ` processor. Here is
102- what your ` config.yaml ` file should look like:
100+ For now, you just need a basic traces pipeline with the ` otlp ` receiver and the
101+ ` otlp ` and ` debug ` [ ^ 1 ] exporters. Here is what your ` config.yaml ` file should
102+ look like:
103103
104104> config.yaml
105105
@@ -110,9 +110,6 @@ receivers:
110110 grpc :
111111 endpoint : 0.0.0.0:4317
112112
113- processors :
114- batch :
115-
116113exporters :
117114 # NOTE: Prior to v0.86.0 use `logging` instead of `debug`.
118115 debug :
@@ -121,12 +118,13 @@ exporters:
121118 endpoint : localhost:14317
122119 tls :
123120 insecure : true
121+ sending_queue :
122+ batch :
124123
125124service :
126125 pipelines :
127126 traces :
128127 receivers : [otlp]
129- processors : [batch]
130128 exporters : [otlp/jaeger, debug]
131129 telemetry :
132130 logs :
@@ -975,7 +973,6 @@ import (
975973 " go.opentelemetry.io/collector/receiver"
976974 debugexporter " go.opentelemetry.io/collector/exporter/debugexporter"
977975 otlpexporter " go.opentelemetry.io/collector/exporter/otlpexporter"
978- batchprocessor " go.opentelemetry.io/collector/processor/batchprocessor"
979976 otlpreceiver " go.opentelemetry.io/collector/receiver/otlpreceiver"
980977 tailtracer " github.com/open-telemetry/opentelemetry-tutorials/trace-receiver/tailtracer" // newly added line
981978)
@@ -1007,7 +1004,6 @@ func components() (otelcol.Factories, error) {
10071004 }
10081005
10091006 factories.Processors , err = otelcol.MakeFactoryMap [processor.Factory ](
1010- batchprocessor.NewFactory (),
10111007 )
10121008 if err != nil {
10131009 return otelcol.Factories {}, err
@@ -1046,9 +1042,6 @@ receivers:
10461042 interval : 1m
10471043 number_of_traces : 1
10481044
1049- processors :
1050- batch :
1051-
10521045exporters :
10531046 # NOTE: Prior to v0.86.0 use `logging` instead of `debug`.
10541047 debug :
@@ -1057,12 +1050,13 @@ exporters:
10571050 endpoint : localhost:14317
10581051 tls :
10591052 insecure : true
1053+ sending_queue :
1054+ batch :
10601055
10611056service :
10621057 pipelines :
10631058 traces :
10641059 receivers : [otlp, tailtracer]
1065- processors : [batch]
10661060 exporters : [otlp/jaeger, debug]
10671061 telemetry :
10681062 logs :
@@ -1084,7 +1078,6 @@ The output should look like this:
108410782023-11-08T21:38:36.621+0800 info [email protected] /telemetry.go:201 Serving Prometheus metrics {"address": ":8888", "level": "Basic"} 108510792023-11-08T21:38:36.621+0800 info [email protected] /exporter.go:275 Development component. May change in the future. {"kind": "exporter", "data_type": "traces", "name": "debug"} 108610802023-11-08T21:38:36.621+0800 debug [email protected] /exporter.go:273 Stable component. {"kind": "exporter", "data_type": "traces", "name": "otlp/jaeger"} 1087- 2023-11-08T21:38:36.621+0800 debug [email protected] /processor.go:287 Stable component. {"kind": "processor", "name": "batch", "pipeline": "traces"} 108810812023-11-08T21:38:36.621+0800 debug [email protected] /receiver.go:294 Stable component. {"kind": "receiver", "name": "otlp", "data_type": "traces"} 108910822023-11-08T21:38:36.621+0800 debug [email protected] /receiver.go:294 Alpha component. May change in the future. {"kind": "receiver", "name": "tailtracer", "data_type": "traces"} 109010832023-11-08T21:38:36.622+0800 info [email protected] /service.go:143 Starting otelcol-dev... {"Version": "1.0.0", "NumCPU": 10} @@ -2283,7 +2276,6 @@ And you should see the output like this after a few minutes:
228322762023-11-09T11:38:19.890+0800 info [email protected] /telemetry.go:201 Serving Prometheus metrics {"address": ":8888", "level": "Basic"} 228422772023-11-09T11:38:19.890+0800 debug [email protected] /exporter.go:273 Stable component. {"kind": "exporter", "data_type": "traces", "name": "otlp/jaeger"} 228522782023-11-09T11:38:19.890+0800 info [email protected] /exporter.go:275 Development component. May change in the future. {"kind": "exporter", "data_type": "traces", "name": "debug"} 2286- 2023-11-09T11:38:19.890+0800 debug [email protected] /processor.go:287 Stable component. {"kind": "processor", "name": "batch", "pipeline": "traces"} 228722792023-11-09T11:38:19.891+0800 debug [email protected] /receiver.go:294 Stable component. {"kind": "receiver", "name": "otlp", "data_type": "traces"} 228822802023-11-09T11:38:19.891+0800 debug [email protected] /receiver.go:294 Alpha component. May change in the future. {"kind": "receiver", "name": "tailtracer", "data_type": "traces"} 228922812023-11-09T11:38:19.891+0800 info [email protected] /service.go:143 Starting otelcol-dev... {"Version": "1.0.0", "NumCPU": 10}
0 commit comments