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

feat: Add sentry spotlight (#297) #322

Merged
merged 2 commits into from
Dec 29, 2023
Merged

feat: Add sentry spotlight (#297) #322

merged 2 commits into from
Dec 29, 2023

Conversation

JerrySentry
Copy link
Contributor

Purpose/Motivation

What is the feature? Why is this being done?

Enable Sentry Spotlight when in development environment.

Links to relevant tickets

#297

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@codecov-staging
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

Copy link

codecov-public-qa bot commented Dec 27, 2023

Codecov Report

Merging #322 (c9697a7) into main (3595b60) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #322   +/-   ##
=======================================
  Coverage   96.01%   96.01%           
=======================================
  Files         615      615           
  Lines       15920    15922    +2     
=======================================
+ Hits        15285    15288    +3     
+ Misses        635      634    -1     
Flag Coverage Δ
unit 96.01% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 96.01% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
codecov/settings_base.py 85.71% <100.00%> (+0.15%) ⬆️

... and 1 file with indirect coverage changes

Impacted file tree graph

Copy link

codecov bot commented Dec 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3595b60) 95.63% compared to head (c9697a7) 95.64%.

Additional details and impacted files
@@           Coverage Diff           @@
##            main    #322     +/-   ##
=======================================
+ Coverage   95.63   95.64   +0.01     
=======================================
  Files        730     730             
  Lines      16431   16433      +2     
=======================================
+ Hits       15713   15716      +3     
+ Misses       718     717      -1     
Flag Coverage Δ
unit 96.01% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 96.01% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@codecov-qa
Copy link

codecov-qa bot commented Dec 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3595b60) 96.01% compared to head (c9697a7) 96.01%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #322   +/-   ##
=======================================
  Coverage   96.01%   96.01%           
=======================================
  Files         615      615           
  Lines       15920    15922    +2     
=======================================
+ Hits        15285    15288    +3     
+ Misses        635      634    -1     
Flag Coverage Δ
unit 96.01% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 96.01% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@@ -526,6 +526,10 @@
),
},
)
elif IS_DEV:
sentry_sdk.init(
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we also want the dsn param here?

https://spotlightjs.com/setup/other/#leverage-sentry-sdks

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think so, in the docs it says:

If you want your Sentry SDKs to talk to the Sidecar, enable the spotlight setting. You don’t need a dsn for Spotlight to work.
and we don't actually have a SENTRY_DSN in dev.

@JerrySentry JerrySentry merged commit 161c434 into main Dec 29, 2023
21 checks passed
@JerrySentry JerrySentry deleted the api_297 branch December 29, 2023 22:21
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.

None yet

2 participants