APM some time dont show trace.id by link/to/trace

Kibana version: 9.3.0

Elasticsearch version: 9.3.0

APM Server version: 9.3.0

Browser version: Firefox/Safari

Original install method (e.g. download page, yum, deb, from source, etc.) and version: tar.gz

Fresh install or upgraded from other version? fresh

Is there anything special in your setup? Kafka outputs → Vector → Elasticsearch

Are you using a load balancer in front of the APM Servers? - no

Have you changed index pattern, generated custom templates, changed agent configuration etc - yes i read data from kafka and put into index like

bulk:
  action: "create"
  index: "{{ data_stream.type }}-{{ data_stream.dataset }}-{{ data_stream.namespace }}"

Description of the problem including expected versus actual behavior. Please include screenshots (if relevant):

if i go to url
/apm/link-to/trace/6ff0d84cbf36ec30c527fa5102d32328

as result it redirect me to page looks like

apm/services/test/transactions/view?comparisonEnabled=true&rangeFrom=2026-03-17T13:00:00.000Z&rangeTo=2026-03-17T13:05:00.000Z&traceId=6ff0d84cbf36ec30c527fa5102d32328&transactionId=dc66f753d22c50a8&transactionName=test_test&transactionType=messaging&offset=1d

And i view propetly page with one transaction

its ok good.

Than i use another link (same service)

apm/link-to/trace/39fd3cbce0a6cdfd03c9d932e9df7ef9

its redirect me to page

/apm/services/test/transactions/view?comparisonEnabled=true&rangeFrom=2026-03-17T13:00:00.000Z&rangeTo=2026-03-17T13:05:00.000Z&traceId=39fd3cbce0a6cdfd03c9d932e9df7ef9&transactionId=116f99c4d36794b3&transactionName=test_test&transactionType=messaging&offset=1d

and i view all transaction by this period like

ok i try manual apply filter… and magic its find this transaction…

i try enable Inspect button but there too many queries for compare it

I have no idea why that is….

ok i look at link after apply filter and its add to url

kuery=trace.id:f237e00a49ba60e83f1c08fcef643a02

i think its will good if url apm/link-to/trace/39fd3cbce0a6cdfd03c9d932e9df7ef9 can got param kuery