import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey' ; import { AGENT_NAME } from '../../../common/elasticsearch_fieldnames' ; import { RUM_AGENT_NAMES } from '../../../common/agent_name' ; export function excludeRumExitSpansQuery ( ) { return [ { bool : { must_not : [ { terms : { [ AGENT_NAME ] : RUM_AGENT_NAMES , } , } , ] , } , } , ] as QueryDslQueryContainer [ ] ; }