From f433a554e1b024b8855cb56e72e3f095c555fba3 Mon Sep 17 00:00:00 2001 From: Ash <0Calories@users.noreply.github.com> Date: Thu, 21 Dec 2023 11:40:04 -0500 Subject: [PATCH] feat(tracing): Send component name on interaction spans (#9948) One of the PRs scoped from https://github.com/getsentry/sentry-javascript/pull/9855 Sends component names on the databag of interaction spans --- .../interactions/assets/script.js | 1 + .../browsertracing/interactions/template.html | 1 + .../browsertracing/interactions/test.ts | 32 +++++++++++++++++++ .../src/browser/metrics/index.ts | 15 ++++++--- 4 files changed, 45 insertions(+), 4 deletions(-) diff --git a/packages/browser-integration-tests/suites/tracing/browsertracing/interactions/assets/script.js b/packages/browser-integration-tests/suites/tracing/browsertracing/interactions/assets/script.js index 89d814bd397d..a37a2c70ad27 100644 --- a/packages/browser-integration-tests/suites/tracing/browsertracing/interactions/assets/script.js +++ b/packages/browser-integration-tests/suites/tracing/browsertracing/interactions/assets/script.js @@ -14,3 +14,4 @@ const delay = e => { }; document.querySelector('[data-test-id=interaction-button]').addEventListener('click', delay); +document.querySelector('[data-test-id=annotated-button]').addEventListener('click', delay); diff --git a/packages/browser-integration-tests/suites/tracing/browsertracing/interactions/template.html b/packages/browser-integration-tests/suites/tracing/browsertracing/interactions/template.html index e16deb9ee519..3357fb20a94e 100644 --- a/packages/browser-integration-tests/suites/tracing/browsertracing/interactions/template.html +++ b/packages/browser-integration-tests/suites/tracing/browsertracing/interactions/template.html @@ -6,6 +6,7 @@