1"""Search spans by keyword across name, service_name, span_id, trace_id, parent_span_id.23Usage:4 SEARCH="db.query" python3 scripts/search_spans.py FILE5 SEARCH="payment-service" python3 scripts/search_spans.py FILE67NOTE: This script scans only name/service/ID fields, not the span `attributes` map (which8IS in the payload). To search the whole dataset by an attribute (e.g. http.method,9http.status_code) or by a resource attribute (k8s labels), use the MCP tools10posthog:apm-attributes-list and posthog:apm-attribute-values-list, then re-issue11posthog:query-apm-spans with a filterGroup of type 'span_attribute' or12'span_resource_attribute'.1314Env vars:15 SEARCH — keyword to match (case-insensitive substring)