You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting the following error when I try to add tail_sampling under processors section in the otel collector's config.yaml
Please let me know what I've gotten wrong or how do I get it to work ?
I'd really appreciate some help. Thanks
`root@ubuntu:/etc/otelcol# otelcol --config=file:/etc/otelcol/config.yaml
Error: failed to get config: cannot unmarshal the configuration: 1 error(s) decoding:
error decoding 'processors': unknown type: "tail_sampling" for id: "tail_sampling" (valid values: [batch memory_limiter attributes resource span probabilistic_sampler filter])
2024/04/25 12:47:13 collector server run finished with error: failed to get config: cannot unmarshal the configuration: 1 error(s) decoding:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am getting the following error when I try to add tail_sampling under processors section in the otel collector's config.yaml
Please let me know what I've gotten wrong or how do I get it to work ?
I'd really appreciate some help. Thanks
`root@ubuntu:/etc/otelcol# otelcol --config=file:/etc/otelcol/config.yaml
Error: failed to get config: cannot unmarshal the configuration: 1 error(s) decoding:
error decoding 'processors': unknown type: "tail_sampling" for id: "tail_sampling" (valid values: [batch memory_limiter attributes resource span probabilistic_sampler filter])
2024/04/25 12:47:13 collector server run finished with error: failed to get config: cannot unmarshal the configuration: 1 error(s) decoding:
error decoding 'processors': unknown type: "tail_sampling" for id: "tail_sampling" (valid values: [batch memory_limiter attributes resource span probabilistic_sampler filter])`
BELOW IS MY FULL OTEL CONFIG:
`extensions:
health_check:
pprof:
endpoint: 0.0.0.0:1777
zpages:
endpoint: 0.0.0.0:55679
receivers:
otlp: # the OTLP receiver the app is sending traces to
protocols:
http:
endpoint: 0.0.0.0:4318
processors:
tail_sampling:
decision_wait: 10s
num_traces: 10000
expected_new_traces_per_sec: 10
policies:
[
{
name: test-policy-5,
type: status_code,
status_code: {status_codes: [ERROR, UNSET]}
},
{
name: latency-policy,
type: latency,
latency: {threshold_ms: 300, upper_threshold_ms: 59999}
},
]
exporters:
otlphttp:
endpoint: "http://0.0.0.0:4300"
logging:
loglevel: info
service:
pipelines:
traces:
receivers: [otlp]
processors: [tail_sampling]
exporters: [logging, otlphttp]
~ `
Beta Was this translation helpful? Give feedback.
All reactions