The Publish Metrics function does not automatically drop the original _raw field from the event. Its purpose is to extract, format, and output metrics from events, but it leaves the rest of the event—including _raw—intact unless you explicitly configure downstream functions to remove it.
If you want to drop _raw after metrics extraction, you need to add a separate function (such as a Eval with Remove Fields function) in your pipeline after Publish Metrics. This is confirmed in the documentation, which describes Publish Metrics as extracting metrics but does not mention field removal, and in the code, which processes metrics and dimensions but does not modify or remove _raw:
The Publish Metrics function does not automatically drop the original _raw field from the event. Its purpose is to extract, format, and output metrics from events, but it leaves the rest of the event—including _raw—intact unless you explicitly configure downstream functions to remove it.
If you want to drop _raw after metrics extraction, you need to add a separate function (such as a Eval with Remove Fields function) in your pipeline after Publish Metrics. This is confirmed in the documentation, which describes Publish Metrics as extracting metrics but does not mention field removal, and in the code, which processes metrics and dimensions but does not modify or remove _raw: