An application uses AWS X-Ray to generate a large amount of trace data on an hourly basis.A developer wants to use filter expressions to limit the returned results through user-specified custom attributes.
How should the developer use filter expressions to filter the results in X-Ray?
Add custom attributes as annotations in the segment document.
Add custom attributes as metadata in the segment document.
Add custom attributes as new segment fields in the segment document.
Create new sampling rules that are based on custom attributes.