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

Disable most instrumentations by default in Lambda environments #249

Merged
merged 5 commits into from
Feb 12, 2024

Conversation

raphael-theriault-swi
Copy link
Member

This significantly speeds up startup times. Notable exceptions are the Lambda and AWS SDK instrumentations which stay enabled by default.

@raphael-theriault-swi raphael-theriault-swi requested a review from a team as a code owner February 12, 2024 21:41
@@ -166,6 +166,7 @@ const schema = z.object({
swMetrics: boolean.default(!IS_SERVERLESS),
initMessage: boolean.default(!IS_SERVERLESS),
resourceDetection: boolean.default(true),
instrumentationsDefaultDisabled: boolean.default(IS_SERVERLESS),

Choose a reason for hiding this comment

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

Dumb question: is the the main toggle between lambda and regular loading?

Copy link
Member Author

Choose a reason for hiding this comment

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

IS_SERVERLESS is yeah, instrumentationsDefaultDisabled just toggles the default behaviour between instrumentations being disabled or enabled by default

@raphael-theriault-swi raphael-theriault-swi merged commit 18680f5 into main Feb 12, 2024
38 checks passed
@raphael-theriault-swi raphael-theriault-swi deleted the NH-72500 branch February 12, 2024 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants