Skip to content

Commit

Permalink
Remove duplicated sentry setup in sls functions
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenchio committed Jan 20, 2025
1 parent e441d20 commit e9c7fa9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
10 changes: 0 additions & 10 deletions lambda-functions/contact_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,12 @@
import boto3
import pipedrive
import sentry_sdk
from sentry_sdk.integrations.aws_lambda import AwsLambdaIntegration


logger = logging.getLogger()
logger.setLevel(logging.INFO)


sentry_sdk.init(
dsn="https://[email protected]"
+ "/4506218347954176",
integrations=[AwsLambdaIntegration()],
traces_sample_rate=1.0,
profiles_sample_rate=1.0,
)


def create_crm_lead(form_data):
logger.info('create_crm_lead(): start')

Expand Down
10 changes: 0 additions & 10 deletions lambda-functions/newsletter_sign_up.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,13 @@
from json import JSONDecodeError

import sentry_sdk
from sentry_sdk.integrations.aws_lambda import AwsLambdaIntegration
from crisp_api import Crisp, RouteError


logger = logging.getLogger()
logger.setLevel(logging.INFO)


sentry_sdk.init(
dsn="https://[email protected]"
+ "/4506218347954176",
integrations=[AwsLambdaIntegration()],
traces_sample_rate=1.0,
profiles_sample_rate=1.0,
)


def add_crisp_contact(email):
logger.info('add_crisp_contact(): start')
crisp = Crisp()
Expand Down

0 comments on commit e9c7fa9

Please sign in to comment.