-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
sentry-sdk import issue #15992
Labels
severity: medium
Results in substantial degraded or broken functionality for specfic workflows
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
Comments
kuhball
added
status: needs triage
This issue is awaiting triage by a maintainer
type: bug
A confirmed report of unexpected behavior in the application
labels
May 7, 2024
Form our Slack conversation: diff --git a/netbox/netbox/settings.py b/netbox/netbox/settings.py
index 53eaffed5..355ff9f58 100644
--- a/netbox/netbox/settings.py
+++ b/netbox/netbox/settings.py
@@ -514,6 +514,7 @@ MAINTENANCE_EXEMPT_PATHS = (
if SENTRY_ENABLED:
try:
import sentry_sdk
+ from sentry_sdk.integrations.django import DjangoIntegration
except ModuleNotFoundError:
raise ImproperlyConfigured("SENTRY_ENABLED is True but the sentry-sdk package is not installed.")
if not SENTRY_DSN:
@@ -522,7 +523,7 @@ if SENTRY_ENABLED:
sentry_sdk.init(
dsn=SENTRY_DSN,
release=VERSION,
- integrations=[sentry_sdk.integrations.django.DjangoIntegration()],
+ integrations=[DjangoIntegration()],
sample_rate=SENTRY_SAMPLE_RATE,
traces_sample_rate=SENTRY_TRACES_SAMPLE_RATE,
send_default_pii=True, or by removing the |
jeremystretch
added
status: needs owner
This issue is tentatively accepted pending a volunteer committed to its implementation
severity: medium
Results in substantial degraded or broken functionality for specfic workflows
and removed
status: needs triage
This issue is awaiting triage by a maintainer
labels
May 7, 2024
Thanks for digging into this. I wasn't able to immediately track down the responsible change, but it's likely from the recent v2.0 release a couple weeks ago. |
tobiasge
added a commit
to tobiasge/netbox
that referenced
this issue
May 7, 2024
According to the Sentry Python SDK documentation setting the integrations manually is only neede when the integration configuration needs to be changed. See: https://docs.sentry.io/platforms/python/integrations/django/#options
tobiasge
added a commit
to tobiasge/netbox
that referenced
this issue
May 7, 2024
According to the Sentry Python SDK documentation setting the integrations manually is only needed when the integration configuration needs to be changed. See: https://docs.sentry.io/platforms/python/integrations/django/#options
I created the PR #15998 to fix this. |
jeremystretch
added
status: accepted
This issue has been accepted for implementation
and removed
status: needs owner
This issue is tentatively accepted pending a volunteer committed to its implementation
labels
May 7, 2024
jeremystretch
pushed a commit
that referenced
this issue
May 7, 2024
According to the Sentry Python SDK documentation setting the integrations manually is only needed when the integration configuration needs to be changed. See: https://docs.sentry.io/platforms/python/integrations/django/#options
Merged
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
severity: medium
Results in substantial degraded or broken functionality for specfic workflows
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
Deployment Type
Self-hosted
NetBox Version
v4.0.0
Python Version
3.12
Steps to Reproduce
Expected Behavior
Netbox should start with enabled sentry.
@tobiasge already looked into this within netbox slack. This is not an issue within netbox-docker, but rather an issue created via a redesign within sentry.
Observed Behavior
Traceroute:
The text was updated successfully, but these errors were encountered: