How to search for information in span.attributes.*

How to search for information in span.attributes.*. For example, if I put the user id in span.attributes, I want to find the associated trace by the user id.

span.attributes.member_id: 12306

Hi, @charles.liu . In our raw trace index template fields in span.attributes.* are identified as keyword. So you should be able to do term query as normal and output any other fields (e.g. traceId) by specifying field names.