Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(opentelemetry): Update OpenTelemetry dependencies to 1.28.0 #14547

Merged
merged 9 commits into from
Dec 5, 2024

Conversation

mydea
Copy link
Member

@mydea mydea commented Dec 3, 2024

Updates all OpenTelemetry dependencies to 1.28.0, as well as all instrumentation except for prisma (which is a major from 5 to 6, so leaving this out for now...) to their latest version.

@mydea mydea self-assigned this Dec 3, 2024
@mydea mydea changed the title feat: Update OpenTelemetry dependencies to 1.28.0 feat(opentelemetry): Update OpenTelemetry dependencies to 1.28.0 Dec 3, 2024
Copy link
Contributor

github-actions bot commented Dec 3, 2024

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 23.17 KB - -
@sentry/browser - with treeshaking flags 21.85 KB - -
@sentry/browser (incl. Tracing) 35.66 KB - -
@sentry/browser (incl. Tracing, Replay) 72.57 KB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 62.99 KB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 76.88 KB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 89.36 KB - -
@sentry/browser (incl. Feedback) 39.93 KB - -
@sentry/browser (incl. sendFeedback) 27.78 KB - -
@sentry/browser (incl. FeedbackAsync) 32.57 KB - -
@sentry/react 25.84 KB - -
@sentry/react (incl. Tracing) 38.47 KB - -
@sentry/vue 27.37 KB - -
@sentry/vue (incl. Tracing) 37.49 KB - -
@sentry/svelte 23.33 KB - -
CDN Bundle 24.33 KB - -
CDN Bundle (incl. Tracing) 37.32 KB - -
CDN Bundle (incl. Tracing, Replay) 72.19 KB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 77.53 KB - -
CDN Bundle - uncompressed 71.5 KB - -
CDN Bundle (incl. Tracing) - uncompressed 110.78 KB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 223.85 KB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 237.07 KB - -
@sentry/nextjs (client) 38.77 KB - -
@sentry/sveltekit (client) 36.15 KB - -
@sentry/node 152.07 KB +12.78% +17.22 KB 🔺
@sentry/node - without tracing 98.96 KB +2.18% +2.11 KB 🔺
@sentry/aws-serverless 143.98 KB +31.88% +34.8 KB 🔺

View base workflow run

Copy link

codecov bot commented Dec 3, 2024

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
661 1 660 27
View the top 1 failed tests by shortest run time
basic.test.ts AWS Serverless SDK sends events in ESM mode
Stack Traces | 2.19s run time
basic.test.ts:5:5 AWS Serverless SDK sends events in ESM mode

To view more test analytics, go to the Test Analytics Dashboard
📢 Thoughts on this report? Let us know!

@@ -33,6 +33,7 @@ test('Lambda layer SDK bundle sends events', async ({ request }) => {
'sentry.op': 'function.aws.lambda',
'cloud.account.id': '123453789012',
'faas.id': 'arn:aws:lambda:us-east-1:123453789012:function:my-lambda',
'faas.coldstart': true,
Copy link
Member Author

Choose a reason for hiding this comment

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

nice new attribute from the otel instrumentation!

Copy link
Member

Choose a reason for hiding this comment

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

@@ -28,18 +28,22 @@ test('AWS Serverless SDK sends events in ESM mode', async ({ request }) => {
expect(transactionEvent.contexts?.trace).toEqual({
data: {
'sentry.sample_rate': 1,
'sentry.source': 'component',
'sentry.origin': 'auto.function.serverless',
'sentry.source': 'custom',
Copy link
Member Author

Choose a reason for hiding this comment

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

this now uses the proper OTEL instrumentation here! 🚀

@@ -54,6 +58,19 @@ test('AWS Serverless SDK sends events in ESM mode', async ({ request }) => {
}),
);

expect(transactionEvent.spans).toContainEqual(
Copy link
Member Author

Choose a reason for hiding this comment

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

apparently our check isWrappedByOtel is not working, so we still emit the span. it's not really a problem as this will just be a child, but weird...

@@ -10,6 +10,7 @@ module.exports = {
testMatch: ['<rootDir>/**/*.test.ts', '<rootDir>/**/*.test.tsx'],
moduleNameMapper: {
'^axios$': require.resolve('axios'),
'@opentelemetry/semantic-conventions/incubating': require.resolve('@opentelemetry/semantic-conventions/incubating'),
Copy link
Member Author

Choose a reason for hiding this comment

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

this is needed to make this work with jest 😬

@mydea mydea requested review from AbhiPrasad and lforst December 3, 2024 15:21
@mydea mydea marked this pull request as ready for review December 3, 2024 15:21
@mydea
Copy link
Member Author

mydea commented Dec 3, 2024

Bundle size is increasing quite a bit 😬 but not sure what we can do about that.

Copy link
Member

Choose a reason for hiding this comment

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

Is there a particular reason we are vendoring this? I would add a comment why and if we did any changes we also need to note them down.

Copy link
Member Author

Choose a reason for hiding this comment

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

ah sorry, forgot to mention - they removed the export 😬

Copy link
Member Author

Choose a reason for hiding this comment

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

so no changes, just 1-1 copied this in!

@@ -33,6 +33,7 @@ test('Lambda layer SDK bundle sends events', async ({ request }) => {
'sentry.op': 'function.aws.lambda',
'cloud.account.id': '123453789012',
'faas.id': 'arn:aws:lambda:us-east-1:123453789012:function:my-lambda',
'faas.coldstart': true,
Copy link
Member

Choose a reason for hiding this comment

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

@mydea mydea force-pushed the fn/bump-otel-deps branch from 6e22897 to ac49e8b Compare December 4, 2024 12:23
@mydea mydea force-pushed the fn/bump-otel-deps branch from ac49e8b to bf29fb3 Compare December 4, 2024 15:58
@mydea mydea merged commit d631127 into develop Dec 5, 2024
153 checks passed
@mydea mydea deleted the fn/bump-otel-deps branch December 5, 2024 07:49
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.

3 participants