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(serverless): Do not include performance integrations by default #11998

Merged
merged 4 commits into from
May 13, 2024

Conversation

mydea
Copy link
Member

@mydea mydea commented May 13, 2024

In order to keep bundle size compact, performance integrations (except for http & fetch) have to be manually added for serverless packages.

This means that users will have to do e.g. this if they want to have mysql instrumented:

import * as Sentry from '@sentry/aws-serverless';

Sentry.init({
  integrations: [Sentry.mysqlIntegration()]
});

Closes #11991

In order to keep bundle size compact, performance integrations (except for http & fetch) have to be manually added for serverless packages.
@mydea mydea self-assigned this May 13, 2024
Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

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

Good change, thx!

packages/aws-serverless/src/sdk.ts Outdated Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

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

l/suggestion: We could add a sentence to the init function to remind users to initialize additional (database) integrations? (just an idea; we could also wait until we updated docs accordingly and link there)

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, we can still tweak this later I'd say! 👍

mydea and others added 2 commits May 13, 2024 13:58
Co-authored-by: Lukas Stracke <lukas.stracke@sentry.io>
@mydea mydea merged commit bd9ead6 into develop May 13, 2024
83 checks passed
@mydea mydea deleted the fn/serverless-default-instrumentation branch May 13, 2024 12:30
andreiborza pushed a commit that referenced this pull request May 16, 2024
…11998)

In order to keep bundle size compact, performance integrations (except
for http & fetch) have to be manually added for serverless packages.

This means that users will have to do e.g. this if they want to have
mysql instrumented:

```js
import * as Sentry from '@sentry/aws-serverless';

Sentry.init({
  integrations: [Sentry.mysqlIntegration()]
});
```

Closes #11991

---------

Co-authored-by: Lukas Stracke <lukas.stracke@sentry.io>
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.

Exclude optional performance instrumentation by default for AWS Serverless
3 participants