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

Setup Sentry monitoring manually #3352

Conversation

cesarvarela
Copy link
Collaborator

@cesarvarela cesarvarela commented Feb 5, 2025

closes #3261

Navigating to https://pr-3352--staging-aiid.netlify.app/apps/submitted/ should send transactions to Sentry.

Two new environment variables need to be set on Netlify:

SENTRY_DSN= # from Sentry 
SENTRY_ENVIRONMENT= # should be one of: production, staging, or development (additional envs could be configured if necessary)

Sentry also allows profiling the function, but I couldn't get it working with the current Netlify functions bundler.

Note. I call this "manually" because Netlify allows installing a Sentry integration via UI. Still, it seems it is not working or has been abandoned, partly because they seem to be deprecating "Integrations" in favor of "Extensions."..

Copy link

codecov bot commented Feb 5, 2025

Codecov Report

Attention: Patch coverage is 67.24138% with 38 lines in your changes missing coverage. Please review.

Project coverage is 95.88%. Comparing base (582e04c) to head (564aebf).
Report is 6 commits behind head on staging.

Files with missing lines Patch % Lines
site/gatsby-site/src/utils/serverless.ts 28.57% 20 Missing ⚠️
site/gatsby-site/sentry-instrumentation.ts 75.67% 18 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           staging    #3352      +/-   ##
===========================================
- Coverage    96.13%   95.88%   -0.26%     
===========================================
  Files           71       72       +1     
  Lines        13702    13812     +110     
  Branches       265      411     +146     
===========================================
+ Hits         13172    13243      +71     
- Misses         530      556      +26     
- Partials         0       13      +13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cesarvarela cesarvarela merged commit 68ab9dd into responsible-ai-collaborative:staging Feb 13, 2025
13 of 15 checks passed
@cesarvarela cesarvarela deleted the frature-sentry-functions branch February 13, 2025 00:16
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.

2 participants