TracerSentry¶
dotflow.providers.tracer_sentry.TracerSentry
¶
Bases: Tracer
Import
You can import the TracerSentry class with:
from dotflow.providers import TracerSentry
Example
class dotflow.providers.tracer_sentry.TracerSentry
from dotflow import Config, DotFlow
from dotflow.providers import TracerSentry
config = Config(
tracer=TracerSentry(),
)
workflow = DotFlow(config=config)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dsn
|
str
|
Sentry DSN for the project. If None, uses the SDK already initialized by LogSentry or manually. |
None
|
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 1.0. |
1.0
|
Source code in dotflow/providers/tracer_sentry.py
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 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | |
__init__(dsn=None, environment=None, traces_sample_rate=1.0)
¶
Source code in dotflow/providers/tracer_sentry.py
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | |
end_task(task)
¶
Source code in dotflow/providers/tracer_sentry.py
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | |
end_workflow(workflow_id, **kwargs)
¶
Source code in dotflow/providers/tracer_sentry.py
76 77 78 79 80 81 82 83 84 85 86 87 88 | |
start_task(task)
¶
Source code in dotflow/providers/tracer_sentry.py
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | |
start_workflow(workflow_id, **kwargs)
¶
Source code in dotflow/providers/tracer_sentry.py
63 64 65 66 67 68 69 70 71 72 73 74 | |