File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -286,10 +286,10 @@ def _prepare_event(
286
286
"values" : [
287
287
{
288
288
"stacktrace" : current_stacktrace (
289
- self .options ["max_string_length" ],
290
289
include_local_variables = self .options [
291
290
"include_local_variables"
292
291
],
292
+ max_string_length = self .options ["max_string_length" ],
293
293
),
294
294
"crashed" : False ,
295
295
"current" : True ,
Original file line number Diff line number Diff line change @@ -205,10 +205,10 @@ def _emit(self, record):
205
205
"values" : [
206
206
{
207
207
"stacktrace" : current_stacktrace (
208
- client_options ["max_string_length" ],
209
208
include_local_variables = client_options [
210
209
"include_local_variables"
211
210
],
211
+ max_string_length = client_options ["max_string_length" ],
212
212
),
213
213
"crashed" : False ,
214
214
"current" : True ,
Original file line number Diff line number Diff line change @@ -397,7 +397,7 @@ def _serialize_node_impl(
397
397
if is_span_description :
398
398
return obj
399
399
400
- return _flatten_annotated (strip_string (obj , max_string_length ))
400
+ return _flatten_annotated (strip_string (obj , max_length = max_string_length ))
401
401
402
402
#
403
403
# Start of serialize() function
Original file line number Diff line number Diff line change @@ -515,7 +515,7 @@ def get_lines_from_file(
515
515
def get_source_context (
516
516
frame , # type: FrameType
517
517
tb_lineno , # type: int
518
- max_string_length , # type: int
518
+ max_string_length = None , # type: Optional[ int]
519
519
):
520
520
# type: (...) -> Tuple[List[Annotated[str]], Optional[Annotated[str]], List[Annotated[str]]]
521
521
try :
@@ -650,7 +650,7 @@ def serialize_frame(
650
650
651
651
652
652
def current_stacktrace (
653
- max_string_length , include_local_variables = True , include_source_context = True
653
+ include_local_variables = True , include_source_context = True , max_string_length = None
654
654
):
655
655
# type: (bool, bool) -> Any
656
656
__tracebackhide__ = True
You can’t perform that action at this time.
0 commit comments