import { format } from 'url' ; import { TRACE_ID } from '../../../../common/elasticsearch_fieldnames' ; export const getRedirectToTracePageUrl = ( { traceId , rangeFrom , rangeTo , } ) => format ( { pathname : `/traces` , query : { kuery : `${ TRACE_ID } : "${ traceId }"` , rangeFrom , rangeTo , } , } ) ;