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

Fix elastic apm sentry issues #529

Merged
merged 1 commit into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions config/settings/dev.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration

from .paas import * # noqa


Expand Down
2 changes: 0 additions & 2 deletions config/settings/paas.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import dj_database_url
from dbt_copilot_python.database import database_url_from_env
from dbt_copilot_python.network import setup_allowed_hosts
from dbt_copilot_python.utility import is_copilot

Expand Down
8 changes: 5 additions & 3 deletions config/settings/prod.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration
from dbt_copilot_python.utility import is_copilot

from .paas import * # noqa

Expand All @@ -14,10 +13,13 @@
]

INSTALLED_APPS += [
"elasticapm.contrib.django",
"django_audit_log_middleware",
]

# TODO: Remove once we have migrated to the DBT Platform.
if not is_copilot():
INSTALLED_APPS += ["elasticapm.contrib.django"]

# X_ROBOTS_TAG (https://man.uktrade.io/docs/procedures/1st-go-live.html)
X_ROBOTS_TAG = [
"noindex",
Expand Down