Skip to content

Commit 42a6613

Browse files
authored
[APM] Fix: Add missing user_agent version field and show it on the trace summary (#215403)
Closes #215229 ## Summary This PR adds the `USER_AGENT_VERSION` missing field to the `optionalFields` query fields ## Testing - Find a trace with user agent version (on the edge oblt we have it for `elastic-co-frontend` for example) - Go to the transaction tab (in case of `elastic-co-frontend` click on `/blog/:id`) If the user agent version is available it should be visible in the trace summary: <img width="1155" alt="image" src="https://github.com/user-attachments/assets/75b7e331-44d0-4d1c-8060-815c269e23c9" />
1 parent 5e4981f commit 42a6613

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

x-pack/solutions/observability/plugins/apm/server/routes/transactions/__snapshots__/queries.test.ts.snap

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/solutions/observability/plugins/apm/server/routes/transactions/get_transaction/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import {
3030
HTTP_RESPONSE_STATUS_CODE,
3131
TRANSACTION_PAGE_URL,
3232
USER_AGENT_NAME,
33+
USER_AGENT_VERSION,
3334
} from '../../../../common/es_fields/apm';
3435
import { asMutableArray } from '../../../../common/utils/as_mutable_array';
3536
import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client';
@@ -71,6 +72,7 @@ export async function getTransaction({
7172
HTTP_RESPONSE_STATUS_CODE,
7273
HTTP_REQUEST_METHOD,
7374
USER_AGENT_NAME,
75+
USER_AGENT_VERSION,
7476
] as const);
7577

7678
const resp = await apmEventClient.search('get_transaction', {

0 commit comments

Comments
 (0)