Skip to content

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 requested review from Lms24, andreiborza, lforst and s1gr1d May 13, 2024 10:41
@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!

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 mydea merged commit bd9ead6 into develop May 13, 2024
@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 <[email protected]>
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

4 participants