Use the OTel Collector transform processor to modify telemetry with OTTL statements

domain: opentelemetry.io · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Add the transform processor to the Collector config and specify the context (span, metric, log, etc.) for each statement block
  2. Write OTTL statements to set, delete, or rename attributes using the set and delete_key functions
  3. Use conditional where clauses in OTTL to apply transformations only to matching telemetry items
  4. Test OTTL statements in a staging Collector instance before deploying to production pipelines
  5. Chain multiple transform processor blocks in a pipeline when separation of concerns improves readability

Known gotchas

Related routes

Write OTTL statements in the transform processor to reshape telemetry
github.com/open-telemetry/opentelemetry-collector-contrib · 6 steps · unrated
Apply OTTL expressions in the OTel Collector transform processor to rename metric data points and remove unwanted attributes
opentelemetry.io · 5 steps · unrated
Wire receivers, processors, and exporters into an OTel Collector pipeline
opentelemetry.io · 6 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans