Ad hoc filters variable appended to stream label, not to the label filtering section

Let me give the answer by myself:

use this query: {ervice_name=“agent-example-app”}|=``| logfmt. The key point is put `logfmt`.
If you put the logfmt in the end of the query, then you do some filters, the trace_id=******** will be appended at the end of the query, not insert it in the stream filter.