LogSentry¶
dotflow.providers.log_sentry.LogSentry
¶
Bases: Log
Import
You can import the LogSentry class with:
from dotflow.providers import LogSentry
Example
class dotflow.providers.log_sentry.LogSentry
from dotflow import Config, DotFlow
from dotflow.providers import LogSentry
config = Config(
log=LogSentry(
dsn="https://xxx@sentry.io/123",
environment="production",
),
)
workflow = DotFlow(config=config)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dsn
|
str
|
Sentry DSN for the project. |
required |
environment
|
str
|
Environment tag sent to Sentry. Defaults to None. |
None
|
traces_sample_rate
|
float
|
Sample rate for performance traces (0.0 to 1.0). Defaults to 0.0. |
0.0
|
Source code in dotflow/providers/log_sentry.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | |
__init__(dsn, environment=None, traces_sample_rate=0.0)
¶
Source code in dotflow/providers/log_sentry.py
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | |
debug(**kwargs)
¶
Source code in dotflow/providers/log_sentry.py
95 96 | |
error(**kwargs)
¶
Source code in dotflow/providers/log_sentry.py
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |
info(**kwargs)
¶
Source code in dotflow/providers/log_sentry.py
59 60 61 62 63 64 65 66 | |
warning(**kwargs)
¶
Source code in dotflow/providers/log_sentry.py
86 87 88 89 90 91 92 93 | |