File tree Expand file tree Collapse file tree 4 files changed +10
-15
lines changed Expand file tree Collapse file tree 4 files changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -408,7 +408,6 @@ def env(
408
408
"sentry.sentry_apps" ,
409
409
"sentry.integrations" ,
410
410
"sentry.notifications" ,
411
- "sentry.notifications.platform" ,
412
411
"sentry.flags" ,
413
412
"sentry.monitors" ,
414
413
"sentry.uptime" ,
Original file line number Diff line number Diff line change @@ -5,4 +5,12 @@ class Config(AppConfig):
5
5
name = "sentry.notifications"
6
6
7
7
def ready (self ):
8
- pass
8
+ # Register the NotificationProviders for the platform
9
+ from sentry .notifications .platform .discord .provider import ( # NOQA
10
+ DiscordNotificationProvider ,
11
+ )
12
+ from sentry .notifications .platform .email .provider import EmailNotificationProvider # NOQA
13
+ from sentry .notifications .platform .msteams .provider import ( # NOQA
14
+ MSTeamsNotificationProvider ,
15
+ )
16
+ from sentry .notifications .platform .slack .provider import SlackNotificationProvider # NOQA
Original file line number Diff line number Diff line change @@ -13,4 +13,4 @@ To register a new provider:
13
13
3 . Create a provider module in the new directory.
14
14
- Extend ` NotificationProvider ` from [ ` .provider ` ] ( ./provider.py ) and implement its methods/variables.
15
15
- Import ` provider_registry ` from [ ` .registry ` ] ( ./registry.py ) and add it via decorator: ` @provider_registry.register(<YOUR-KEY-HERE>) `
16
- 4 . In [ .apps] ( ./apps.py ) , explicitly import the module to register the provider on initialization.
16
+ 4 . In [ ../ apps] ( . ./apps.py) , explicitly import the module to register the provider on initialization.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments