Skip to content

Commit aa0eaab

Browse files
authored
fix(typing): Add before_send_log to Experiments (#4383)
1 parent c639f1c commit aa0eaab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sentry_sdk/consts.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import itertools
2-
32
from enum import Enum
43
from typing import TYPE_CHECKING
54

@@ -47,6 +46,7 @@ class CompressionAlgo(Enum):
4746
Event,
4847
EventProcessor,
4948
Hint,
49+
Log,
5050
MeasurementUnit,
5151
ProfilerMode,
5252
TracesSampler,
@@ -79,6 +79,7 @@ class CompressionAlgo(Enum):
7979
],
8080
"metric_code_locations": Optional[bool],
8181
"enable_logs": Optional[bool],
82+
"before_send_log": Optional[Callable[[Log, Hint], Optional[Log]]],
8283
},
8384
total=False,
8485
)

0 commit comments

Comments
 (0)