Skip to content

Conversation

@nicohrubec
Copy link
Member

@nicohrubec nicohrubec commented Jan 23, 2026

While working on the gen_ai.request.messages rename I noticed that we hardcode all the attributes in our ai integration tests (both node and cloudflare), meaning that we currently need to change each individual test just to rename one attribute name. This PR refactors this to use the attributes from our gen-ai-attributes.ts. I also added some missing entries for attributes that we currently hardcode in the integrations.

Closes #18951 (added automatically)

@nicohrubec nicohrubec changed the title ref(tests): Use constants in ai node integration tests ref(tests): use constants in ai integration tests and add missing ones Jan 23, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 23, 2026

size-limit report 📦

⚠️ Warning: Base artifact is not the latest one, because the latest workflow run is not done yet. This may lead to incorrect results. Try to re-run all tests to get up to date results.

Path Size % Change Change
@sentry/browser 25.2 kB - -
@sentry/browser - with treeshaking flags 23.71 kB - -
@sentry/browser (incl. Tracing) 42.02 kB - -
@sentry/browser (incl. Tracing, Profiling) 46.66 kB - -
@sentry/browser (incl. Tracing, Replay) 80.63 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 70.28 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 85.32 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 97.53 kB - -
@sentry/browser (incl. Feedback) 41.92 kB - -
@sentry/browser (incl. sendFeedback) 29.89 kB - -
@sentry/browser (incl. FeedbackAsync) 34.89 kB - -
@sentry/browser (incl. Metrics) 26.31 kB - -
@sentry/browser (incl. Logs) 26.46 kB - -
@sentry/browser (incl. Metrics & Logs) 27.11 kB - -
@sentry/react 26.93 kB - -
@sentry/react (incl. Tracing) 44.26 kB - -
@sentry/vue 29.64 kB - -
@sentry/vue (incl. Tracing) 43.82 kB - -
@sentry/svelte 25.22 kB - -
CDN Bundle 27.78 kB - -
CDN Bundle (incl. Tracing) 42.83 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 43.65 kB - -
CDN Bundle (incl. Tracing, Replay) 79.53 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 84.97 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 85.89 kB - -
CDN Bundle - uncompressed 81.27 kB - -
CDN Bundle (incl. Tracing) - uncompressed 126.81 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 129.65 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 243.35 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 256.15 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 258.96 kB - -
@sentry/nextjs (client) 46.62 kB - -
@sentry/sveltekit (client) 42.39 kB - -
@sentry/node-core 51.9 kB -0.01% -1 B 🔽
@sentry/node 165.48 kB +0.02% +24 B 🔺
@sentry/node - without tracing 93.65 kB -0.01% -1 B 🔽
@sentry/aws-serverless 109.16 kB -0.01% -1 B 🔽

View base workflow run

@github-actions
Copy link
Contributor

github-actions bot commented Jan 23, 2026

node-overhead report 🧳

Note: This is a synthetic benchmark with a minimal express app and does not necessarily reflect the real-world performance impact in an application.
⚠️ Warning: Base artifact is not the latest one, because the latest workflow run is not done yet. This may lead to incorrect results. Try to re-run all tests to get up to date results.

Scenario Requests/s % of Baseline Prev. Requests/s Change %
GET Baseline 9,452 - 8,944 +6%
GET With Sentry 1,698 18% 1,786 -5%
GET With Sentry (error only) 6,266 66% 6,223 +1%
POST Baseline 1,237 - 1,206 +3%
POST With Sentry 610 49% 597 +2%
POST With Sentry (error only) 1,085 88% 1,064 +2%
MYSQL Baseline 3,405 - 3,304 +3%
MYSQL With Sentry 570 17% 513 +11%
MYSQL With Sentry (error only) 2,793 82% 2,667 +5%

View base workflow run

Copy link
Member

@RulaKhaled RulaKhaled left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you

@nicohrubec nicohrubec merged commit 078de5c into develop Jan 23, 2026
212 checks passed
@nicohrubec nicohrubec deleted the nh/ref-tests-to-use-constants branch January 23, 2026 13:31
RulaKhaled pushed a commit that referenced this pull request Jan 23, 2026
#18945)

While working on the `gen_ai.request.messages` rename I noticed that we
hardcode all the attributes in our ai integration tests (both node and
cloudflare), meaning that we currently need to change each individual
test just to rename one attribute name. This PR refactors this to use
the attributes from our `gen-ai-attributes.ts`. I also added some
missing entries for attributes that we currently hardcode in the
integrations.

Closes #18951 (added automatically)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ref(tests): use constants in ai integration tests and add missing ones

3 participants