getsentry / getsentry/sentry

AWS Lambda integration overwrite environment variables

Open
#46,376 2 comments 0 reactions 0 assignees View on GitHub
JavaScript SDKs
Dominant language
Python
Stars
44.8k
Forks
4.9k
Avg merge
1d 5h
Merged PRs (30d)
624

Description

### Problem Statement

Please provide a way of setting SENTRY_TRACES_SAMPLE_RATE to a custom value.

I have more than 100 lambdas and is hard to modify this value manually as it's written in the documentation

Already tried to set the environment variable on lambda before enabling the integration, but it's always overwritten when enabling the integration

### Solution Brainstorm

Check if lambda has already this environment variable configured and if yes, don't overwrite it

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.