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

runtime-dyno-metadata warning even if SENTRY_DSN is not set #885

Closed
jonekdahl opened this issue Jan 24, 2019 · 6 comments
Closed

runtime-dyno-metadata warning even if SENTRY_DSN is not set #885

jonekdahl opened this issue Jan 24, 2019 · 6 comments
Assignees
Projects
Milestone

Comments

@jonekdahl
Copy link

We're using Sentry in our app that runs on Heroku, but we don't install the Sentry add-on for our review apps, so SENTRY_DSN is not set for those apps.

I think I've read somewhere that one way to "deactivate" Sentry is to simply not set SENTRY_DSN, so this should be fine. However, I still get the runtime-dyno-metadata warning:

WARN -- sentry: ** [Raven] You are running on Heroku but haven't enabled Dyno Metadata. For Sentry's release detection to work correctly, please run `heroku labs:enable runtime-dyno-metadata`

I would like Sentry to be completely silent when SENTRY_DSN is not available, or at least not log warnings.

@SampsonCrowley
Copy link

It would also be nice not to get this warning when the version is already explicitly set

@jonekdahl
Copy link
Author

It looks like similar issues were have been raised before (#755, #864) but so far there is no solution apart from enabling Dyno Metadata, which is tricky for review apps since Heroku labs features cannot be added through app.json.

@st0012 st0012 added this to the 4.0.0 milestone Aug 14, 2020
@st0012 st0012 added this to To do in 4.x via automation Aug 14, 2020
@st0012
Copy link
Collaborator

st0012 commented Aug 27, 2020

@jonekdahl what environment will the review app have? will it be production too or something like review or staging?

@jonekdahl
Copy link
Author

@st0012 Are you asking about RAILS_ENV? I don't believe Heroku puts any restrictions on that, so it could be any of the above. We're using 'production'.

@st0012 st0012 self-assigned this Aug 27, 2020
@st0012 st0012 added the heroku label Aug 27, 2020
@st0012 st0012 modified the milestones: 4.0.0, 4.1.0, 4.2.0 Dec 10, 2020
@st0012 st0012 modified the milestones: 4.2.0, 4.3.0 Jan 27, 2021
@st0012 st0012 removed this from the 4.3.0 milestone Mar 2, 2021
@pil0u
Copy link

pil0u commented Apr 3, 2021

EDIT: it seems that it was just a lag on Heroku's side. Redepolying without the variable worked.

I am not sure if it's the right place to ask but on the very bottom of this page from the docs, it says:

With Sentry, you may either set the SENTRY_DSN environment variable (recommended), or set your DSN manually in a config block

When my config.dns is set in my Rails app and I properly ran the heroku labs:enable runtime-dyno-metadata -a <app_name> command, I still get the warning mentioned in this issue.
If on top of that, I set the SENTRY_DSN variable in my Heroku variables, the warning disappears.

From the documentation, I thought that one solution or the other should work. Should I open another issue for that matter?

@st0012 st0012 added this to the 4.5.2 milestone Jun 11, 2021
st0012 added a commit that referenced this issue Jun 11, 2021
This makes sure the users don't see release detection warnings when they
don't even plan to use it.

Closes #885
@st0012 st0012 closed this as completed in e73fd76 Jun 11, 2021
4.x automation moved this from To do to Done Jun 11, 2021
@st0012
Copy link
Collaborator

st0012 commented Jun 11, 2021

hey sorry for the long delay 🙏 I have fixed this in #1471 and it will be included in the next patch release.
(because sentry-raven has entered maintenance mode, the fix will not be backported there. you can follow the migration guide to migrate to the new SDK 🙂)

@st0012 st0012 modified the milestones: 4.5.2, 4.6.0 Jun 24, 2021
@st0012 st0012 modified the milestones: 4.6.0, 4.5.2 Jun 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
4.x
  
Done
Development

No branches or pull requests

4 participants