Skip to content

Commit

Permalink
remove Sentry sampling functions in favor of django_twc_toolbox.sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuadavidthomas committed Aug 2, 2024
1 parent 8738fc4 commit f0db176
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 39 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Changed

- Now using `django_twc_toolbox.views` for some core views. See the removed section below.
- Now using Sentry sampler functions from `django_twc_toolbox.sentry`. See the removed section below.

### Fixed

Expand All @@ -29,6 +30,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Removed

- Removed all views except the `index` view from the template project's `core/views.py`, in favor of `django_twc_toolbox.views`.
- Removed Sentry sampler functions.

## [2024.40]

Expand Down
36 changes: 0 additions & 36 deletions src/django_twc_project/{{ module_name }}/core/sentry.py

This file was deleted.

5 changes: 2 additions & 3 deletions src/django_twc_project/{{ module_name }}/settings.py.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,15 @@ from pathlib import Path
import django_stubs_ext
import sentry_sdk
from django.template import base
from django_twc_toolbox.sentry import sentry_profiles_sampler
from django_twc_toolbox.sentry import sentry_traces_sampler
from email_relay.conf import EMAIL_RELAY_DATABASE_ALIAS
from environs import Env
from marshmallow.validate import Email
from marshmallow.validate import OneOf
from sentry_sdk.integrations.django import DjangoIntegration
from sentry_sdk.integrations.logging import LoggingIntegration

from .core.sentry import sentry_profiles_sampler
from .core.sentry import sentry_traces_sampler

# 0. Setup

BASE_DIR = Path(__file__).resolve(strict=True).parent.parent
Expand Down

0 comments on commit f0db176

Please sign in to comment.