
Our production pipeline configuration still carries some OTTL statements that we wrote by hand for individual customers early on. Those customers really needed help straightening up their telemetry before storing it in Dash0. One customer's logs carried the trace ID under seven different keys, depending on which team and which logging library wrote them, so we added statements that renamed them to one key. Another customer needed attributes moved between spans and their resources. Every request meant a change to our configuration and a deploy on our side, and the customer waited for us. We knew this didn't scale, so we did it sparingly. Besides, as you might expect, customers lost track of what changes we made on their behalf, since they had no way to access the logic of our ingestion pipeline.
The usual alternative isn't much better. Teams write OTTL, the OpenTelemetry Transformation Language, into their own collectors, roll it out to every cluster, and find out in production whether a statement did what they meant. This is notoriously challenging in all but the smallest organizations: the collector often belongs to a platform team, so the people who need a fix are rarely the people who can deploy it. Moreover, you need to merge your changes with those needed by other teams, and in multi-tenant pipelines, rules and complexity quickly add up.
SignalControl now takes a lot of that complexity away. We added a Transform stage for logs, metrics and spans. A transform rule runs in Dash0 on telemetry however you send it to us, before Dash0 stores it. You build the rule on a real record and check the result in the Output panel before you save. In true Dash0 fashion, it's built on open standards: Dash0 writes the OTTL for each step, and you can read it, edit it, or write your own.
Curious how this can help you? Get inspired by three problems customers brought to us, and the rule that solves each one.
Turn a log line into a metric you can group by
A lot of useful numbers live only inside log lines. Say your batch jobs write one line per run:
2026-11-25T09:15:02.481Z INFO Processed batch job=orders-import file=orders-20261125-0915.csv records=1234 duration_ms=842You want to keep the count of records processed and the run duration per job, to use in a dashboard and an alert. Storing a log line for every run just to get two numbers is a waste.
- In the log explorer, filter down to these lines and click Transform. The rule editor opens with a condition that matches your filter. Pick one of the lines as the sample.
- In the sample, select
orders-importand click Extract. Select1234and842as well. Each selection adds a parameter to the pattern, and Dash0 sets the two numbers to Integer. - Rename the parameters to
job,recordsandduration_ms, and replace the timestamp and the file name with<*>, which matches text without keeping it. The pattern ends up as<*> job=<job> file=<*> records=<records> duration_ms=<duration_ms>. Suggest pattern asks Agent0 to write the pattern instead. Check what it keeps, because every parameter becomes an attribute. - The Output panel shows
job,recordsandduration_msas new attributes on the sample. Save the rule.

Open Advanced on the step to see the OTTL it writes:
merge_maps(attributes, ExtractGrokPatterns(log.body, "%{DATA} job=%{NOTSPACE:job} file=%{DATA} records=%{INT:records:int} duration_ms=%{INT:duration_ms:int}", true), "upsert")Transform runs before Convert to metrics, so a conversion rule can use these attributes. Add one that sums records and keeps job as a dimension, and another that records duration_ms in an exponential histogram. Turn on Drop matched logs if the numbers are all you need.
A conversion rule could read records straight from the body with an OTTL value expression. It couldn't group by job, though. A conversion rule keeps attributes as dimensions, and until the transform rule ran, job was only text in the body.
JSON logs need one Custom step instead of an Extract step: merge_maps(log.attributes, ParseJSON(log.body), "upsert"). Dash0 parses JSON bodies for storage as well, but that happens after metric conversion.
This was the request we heard most often from teams moving to Dash0 from another vendor's log pipeline. They wanted to pull a value out of a log, turn it into a metric, and stop storing the log.
Keep tokens and email addresses out of storage
Sensitive values get into telemetry in dull ways. An HTTP client records the full URL with its query string. A service logs the address it just sent a password reset to. An instrumentation library records request headers.
A transform rule removes them before Dash0 stores anything.
- To mask a token in a URL, select the token in a span's
url.full, for examplehttps://api.example.com/v1/export?access_token=eyJhbGciOi..., and click Mask. Shorten the pattern toaccess_token=<token>so it matches any URL, settokento Text without spaces, and the Output panel showsaccess_token=*****. - To mask an email address in a log body, select it in
password reset sent to jane.doe@example.comand click Mask. With the patternsent to <email>andemailset to Text without spaces, the body becomespassword reset sent to *****. - To remove a header, add a Delete step for
http.request.header.authorization, and another forhttp.request.header.cookie.

Check each parameter's type against the Output panel. Text without spaces covers a whole token. Word stops at the first dot, so a JWT comes out as *****.eyJzdWIi... and an email address as *****.doe@example.com.
The URL mask writes one statement:
replace_pattern(attributes["url.full"], "(access_token=)(?P<token>\\S+)", "$1*****")A rule applies to telemetry Dash0 receives after you save it. Nothing already stored changes. If a value must never leave your network, mask it at the source or in your own collector, because transform rules run in Dash0. Card numbers don't need a rule at all. Turn on Cardholder Data Redaction for the dataset instead.
Give one thing one name
Naming is one of the Hard Problems™ of computer science. Semantic conventions settle naming for the attributes they cover, and Dash0's schema migrations keep those current. A span that arrives with http.status_code is stored with http.response.status_code. Your own attributes have no convention to migrate to.
Take the customer from the start of this post. Their logs carried the trace ID under seven keys. Dash0 already recognizes one of them, trace_id. The other six were traceid, traceID, x-trace-id, mdcTraceID, Message.Properties.TraceId and Message.Properties.trace-id. Dash0 links a log to its trace when it finds the ID under a key it recognizes, such as trace_id or traceId. Logs with the other six keys weren't linked to anything, and finding every log for one request took a filter with seven alternatives.
One rule fixes it. Add a Rename step for each of the six keys, each renaming to traceId, and give the rule a condition that limits it to the services that use them. A sample only needs one of the keys. Type the others into the steps. A Rename step does not affect a record that lacks its key. Once the rule is live, Dash0 links those logs to their traces, and one filter on traceId finds them all.

Platform teams usually want a rule like this in version control. Click Download YAML in the rule's menu, commit the file, and apply it to each dataset through the API. A dash0.com/origin label gives the rule a stable ID that your scripts can update on every run. The UI shows rules created through the API as read-only, so nobody edits one by hand only to have the next deploy overwrite it.
Good to know
- Transform rules run in Dash0 on telemetry from every source, including what SignalControl Edge collectors forward. Edge collectors don't run transform rules themselves yet.
- Rules run before Dash0 enriches telemetry for storage, so they can't read the attributes Dash0 adds later. Specify conditions on the attributes your telemetry arrives with.
- Every matching rule runs, from highest priority to lowest, and a later rule sees what an earlier one changed.
- Always give a rule a condition. Include a resource attribute such as
service.namewhere you can, so the rule touches only the telemetry it's meant for.
Try it
Open SignalControl and add a rule to the Transform stage, or filter the log or span explorer and click Transform. If you'd rather describe the change than build it, click Ask Agent0 in an empty rule, and it proposes the OTTL, one step per statement. The Signal Transformation docs cover every step type.
