René's URL Explorer Experiment


Title: Enrich attributes of Spans created from PerformanceMeasure events · Issue #16237 · getsentry/sentry-javascript · GitHub

Open Graph Title: Enrich attributes of Spans created from PerformanceMeasure events · Issue #16237 · getsentry/sentry-javascript

X Title: Enrich attributes of Spans created from PerformanceMeasure events · Issue #16237 · getsentry/sentry-javascript

Description: Problem Statement Sentry automatically creates Spans from PerformanceEvents, which is great 👍 But manually created measure events contain the analog of Span.attributes named PerformanceMeasure.detail, which are not propagated to traces. ...

Open Graph Description: Problem Statement Sentry automatically creates Spans from PerformanceEvents, which is great 👍 But manually created measure events contain the analog of Span.attributes named PerformanceMeasure.deta...

X Description: Problem Statement Sentry automatically creates Spans from PerformanceEvents, which is great 👍 But manually created measure events contain the analog of Span.attributes named PerformanceMeasure.deta...

Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/16237

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Enrich attributes of Spans created from PerformanceMeasure events","articleBody":"### Problem Statement\n\nSentry [automatically creates Spans from PerformanceEvents](https://github.com/getsentry/sentry-javascript/blob/develop/packages/browser-utils/src/metrics/browserMetrics.ts#L306), which is great 👍 \n\nBut manually created measure events contain the analog of `Span.attributes` named [PerformanceMeasure.detail](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceMeasure/detail), which [are not propagated](https://github.com/getsentry/sentry-javascript/blob/develop/packages/browser-utils/src/metrics/browserMetrics.ts#L422) to traces.\n\nHere's how the native measure event looks in dev-tools:\n\n![Image](https://github.com/user-attachments/assets/d8b031a3-ae63-4abe-ace4-93cf2c311d2f)\n\nAnd here's the `Span` created from it, lacking vital data:\n\n![Image](https://github.com/user-attachments/assets/fb3ad48c-532c-4c3d-bf2a-15c373f1c131)\n\n# My request is\n\n## ...to enrich `Span.attributes` with the `detail` data 🙏 \n\nThank you for consideration! 😊 \n\n### Solution Brainstorm\n\nThe caveat is, of course, that the `PerformanceMeasure.detail` is not type-restricted and can be anything whatsoever:\n\n```typescript\ninterface PerformanceMeasureOptions {\n    detail?: any;\n    duration?: DOMHighResTimeStamp;\n    end?: string | DOMHighResTimeStamp;\n    start?: string | DOMHighResTimeStamp;\n}\n```\n\nNaturally, I would expect Sentry to support the same data types as in `Span.attributes` itself. Anything extra can be gracefully dropped, or serialized _somehow_, if configured explicitly:\n\n```typescript\nexport function _convertToSpanAttributes(data: unknown): SpanAttributes {\n  // type checks, attribute traversals, array maps, etc...\n}\n\nexport function _extractAttributesFromEntry(entry: PerformanceEntry): SpanAttributes {\n  if(isPerformanceMeasure(entry)) {\n    return _convertToSpanAttributes(entry.detail);\n  }\n  // Here we can support more entry types\n  return {};\n}\n\nexport function _addMeasureSpans(...\n  ...\n\n  // The PerformanceMeasure may contain arbitrary metadata in \"detail\" attribute.\n  // We try to add as much as possible from \"detail\" to attributes\n  const attributesFromEntry = _extractAttributesFromEntry(entry);\n\n  const attributes: SpanAttributes = {\n    ...attributesFromEntry,\n    [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.resource.browser.metrics',\n  };\n```\n\n### Product Area\n\nUnknown","author":{"url":"https://github.com/allista","@type":"Person","name":"allista"},"datePublished":"2025-05-08T15:41:37Z","url":"https://github.com/getsentry/sentry-javascript/issues/16237"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c1250753-1e74-0dea-79d6-1dc87e8cc1c1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA85E:1A6ABD:956CD:CB85D:6B0736C6
html-safe-nonce6fe450a1e3a93efce2d6bcd56981c24ac793fe13f7d03e5dd752656f572b40d8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODVFOjFBNkFCRDo5NTZDRDpDQjg1RDo2QjA3MzZDNiIsInZpc2l0b3JfaWQiOiIzODU0OTU2Nzg0NjA3NzcwMzExIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac4f6ab81b3f9761ff0740462c823994cf9c09d397a6dbd9547c77841bf462c800
hovercard-subject-tagissue:3049419906
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/16237/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b9644c829a7ffc5e8034cf252cb52d1a0eae9a97883f01857fd42460bdbfc181/getsentry/sentry-javascript/issues/16237
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b9644c829a7ffc5e8034cf252cb52d1a0eae9a97883f01857fd42460bdbfc181/getsentry/sentry-javascript/issues/16237
og:image:altProblem Statement Sentry automatically creates Spans from PerformanceEvents, which is great 👍 But manually created measure events contain the analog of Span.attributes named PerformanceMeasure.deta...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameallista
hostnamegithub.com
expected-hostnamegithub.com
Noned97a1befc96fc1512839eca15eb541061d491301144c9168e2985a8580319a49
turbo-cache-controlno-preview
go-importgithub.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3328572
octolytics-dimension-repository_nwogetsentry/sentry-javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3328572
octolytics-dimension-repository_network_root_nwogetsentry/sentry-javascript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
released28643426bfe8d1692f8788961b8217e9003f493
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/16237#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F16237
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F16237
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/issues/16237
Reloadhttps://github.com/getsentry/sentry-javascript/issues/16237
Reloadhttps://github.com/getsentry/sentry-javascript/issues/16237
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues334 (334)https://github.com/getsentry/sentry-javascript/issues
Pull requests57 (57)https://github.com/getsentry/sentry-javascript/pulls
Discussionshttps://github.com/getsentry/sentry-javascript/discussions
Actionshttps://github.com/getsentry/sentry-javascript/actions
Security and quality7 (7)https://github.com/getsentry/sentry-javascript/security
Insightshttps://github.com/getsentry/sentry-javascript/insights
https://github.com/getsentry/sentry-javascript
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/16237
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/16237
#16557https://github.com/getsentry/sentry-javascript/pull/16557
#16240https://github.com/getsentry/sentry-javascript/pull/16240
Enrich attributes of Spans created from PerformanceMeasure eventshttps://github.com/getsentry/sentry-javascript/issues/16237#top
#16557https://github.com/getsentry/sentry-javascript/pull/16557
#16240https://github.com/getsentry/sentry-javascript/pull/16240
https://github.com/AbhiPrasad
https://github.com/allista
allistahttps://github.com/allista
on May 8, 2025https://github.com/getsentry/sentry-javascript/issues/16237#issue-3049419906
automatically creates Spans from PerformanceEventshttps://github.com/getsentry/sentry-javascript/blob/develop/packages/browser-utils/src/metrics/browserMetrics.ts#L306
PerformanceMeasure.detailhttps://developer.mozilla.org/en-US/docs/Web/API/PerformanceMeasure/detail
are not propagatedhttps://github.com/getsentry/sentry-javascript/blob/develop/packages/browser-utils/src/metrics/browserMetrics.ts#L422
https://private-user-images.githubusercontent.com/6084589/441773884-d8b031a3-ae63-4abe-ace4-93cf2c311d2f.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTU2MzUxODcsIm5iZiI6MTc5NTYzNDg4NywicGF0aCI6Ii82MDg0NTg5LzQ0MTc3Mzg4NC1kOGIwMzFhMy1hZTYzLTRhYmUtYWNlNC05M2NmMmMzMTFkMmYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MTEyNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjExMjVUMTkyODA3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NTMyMDdlZjFmYmFhYWNjZWRkM2RkMjI2OTZlNDNhNzQ4ODVhYTFmZjViY2QyMGNhN2I4NWIyZDhmNTg3NDM0YiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.uz2mFHUpKKNlrHcNli15UhbY9Xw0SLYEy3SOnry8gd8
https://private-user-images.githubusercontent.com/6084589/441774644-fb3ad48c-532c-4c3d-bf2a-15c373f1c131.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTU2MzUxODcsIm5iZiI6MTc5NTYzNDg4NywicGF0aCI6Ii82MDg0NTg5LzQ0MTc3NDY0NC1mYjNhZDQ4Yy01MzJjLTRjM2QtYmYyYS0xNWMzNzNmMWMxMzEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MTEyNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjExMjVUMTkyODA3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZmQ1MTY2ZjM2MzU2NTZkZGE3NDljMDgwMjQyMTEzODllNmU0YmNkMWE2M2E0NDhjZDQ1MjkzZTIwZDhhYjNiNyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.v0JRQcweKmQzB0Vj59G7J7aGxTK2-5M_01alO_zNY0Q
https://github.com/apps/getsantry
getsantryhttps://github.com/apps/getsantry
on May 8, 2025https://github.com/getsentry/sentry-javascript/issues/16237#issuecomment-2863530092
routinghttps://open.sentry.io/triage/#2-route
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on May 8, 2025https://github.com/getsentry/sentry-javascript/issues/16237#event-17576465861
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on May 8, 2025https://github.com/getsentry/sentry-javascript/issues/16237
https://github.com/AbhiPrasad
AbhiPrasadhttps://github.com/AbhiPrasad
on May 8, 2025https://github.com/getsentry/sentry-javascript/issues/16237#issuecomment-2863530101
AbhiPrasadhttps://github.com/AbhiPrasad
getsentry/sentryhttps://github.com/getsentry/sentry
on May 8, 2025https://github.com/getsentry/sentry-javascript/issues/16237#event-17576466201
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on May 8, 2025https://github.com/getsentry/sentry-javascript/issues/16237#event-17576466348
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on May 8, 2025https://github.com/getsentry/sentry-javascript/issues/16237
AbhiPrasadhttps://github.com/AbhiPrasad
on May 8, 2025https://github.com/getsentry/sentry-javascript/issues/16237#event-17582309924
https://github.com/AbhiPrasad
AbhiPrasadhttps://github.com/AbhiPrasad
on May 8, 2025https://github.com/getsentry/sentry-javascript/issues/16237#issuecomment-2864714962
#16240https://github.com/getsentry/sentry-javascript/pull/16240
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on May 8, 2025https://github.com/getsentry/sentry-javascript/issues/16237#event-17582319516
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on May 8, 2025https://github.com/getsentry/sentry-javascript/issues/16237
AbhiPrasadhttps://github.com/AbhiPrasad
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#16240https://github.com/getsentry/sentry-javascript/pull/16240
on May 15, 2025https://github.com/getsentry/sentry-javascript/issues/16237#event-17662589013
AbhiPrasadhttps://github.com/AbhiPrasad
on May 15, 2025https://github.com/getsentry/sentry-javascript/issues/16237#event-17662589056
feat(browser): Track measure detail as span attributes (#16240)https://github.com/getsentry/sentry-javascript/commit/fcdc4d7f0cdb4ac601d0ba3c412359ab605ca7e6
#16240https://github.com/getsentry/sentry-javascript/pull/16240
fcdc4d7https://github.com/getsentry/sentry-javascript/commit/fcdc4d7f0cdb4ac601d0ba3c412359ab605ca7e6
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on May 19, 2025https://github.com/getsentry/sentry-javascript/issues/16237#issuecomment-2890717965
GitHub Actionshttps://help.github.com/en/actions
#16240https://github.com/getsentry/sentry-javascript/pull/16240
9.20.0 releasehttps://github.com/getsentry/sentry-javascript/releases/tag/9.20.0
AbhiPrasadhttps://github.com/AbhiPrasad
on May 20, 2025https://github.com/getsentry/sentry-javascript/issues/16237#event-17741751184
https://github.com/AbhiPrasad
AbhiPrasadhttps://github.com/AbhiPrasad
on May 20, 2025https://github.com/getsentry/sentry-javascript/issues/16237#issuecomment-2895826192
https://github.com/getsentry/sentry-javascript/releases/tag/9.22.0https://github.com/getsentry/sentry-javascript/releases/tag/9.22.0
AbhiPrasadhttps://github.com/AbhiPrasad
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#16557https://github.com/getsentry/sentry-javascript/pull/16557
on Jun 13, 2025https://github.com/getsentry/sentry-javascript/issues/16237#event-18136110482
AbhiPrasadhttps://github.com/AbhiPrasad
on Jun 13, 2025https://github.com/getsentry/sentry-javascript/issues/16237#event-18136110512
feat(browser): Add detail to measure spans and add regression tests (#…https://github.com/getsentry/sentry-javascript/commit/4e7c7eff98b5cd95165ebb4177dd758da0ee58b6
#…https://github.com/getsentry/sentry-javascript/pull/16557
4e7c7efhttps://github.com/getsentry/sentry-javascript/commit/4e7c7eff98b5cd95165ebb4177dd758da0ee58b6
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/16237
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/16237
AbhiPrasadhttps://github.com/AbhiPrasad
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.