config: |
connectors:
routing:
table: (1)
- statement: route() where attributes["X-Tenant"] == "dev" (2)
pipelines: [traces/dev] (3)
- statement: route() where attributes["X-Tenant"] == "prod"
pipelines: [traces/prod]
default_pipelines: [traces/dev] (4)
error_mode: ignore (5)
match_once: false (6)
service:
pipelines:
traces/in:
receivers: [otlp]
exporters: [routing]
traces/dev:
receivers: [routing]
exporters: [otlp/dev]
traces/prod:
receivers: [routing]
exporters: [otlp/prod]