File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change 22
33import json
44import sys
5- import traceback
65from collections import defaultdict
76from collections .abc import Mapping , Sequence
87from dataclasses import dataclass , field
@@ -468,13 +467,6 @@ def record_exception(
468467 span .set_attribute (ATTRIBUTES_VALIDATION_ERROR_KEY , err_json )
469468 attributes [ATTRIBUTES_VALIDATION_ERROR_KEY ] = err_json
470469
471- if exception is not sys .exc_info ()[1 ]:
472- # OTEL's record_exception uses `traceback.format_exc()` which is for the current exception,
473- # ignoring the passed exception.
474- # So we override the stacktrace attribute with the correct one.
475- stacktrace = '' .join (traceback .format_exception (type (exception ), exception , exception .__traceback__ ))
476- attributes ['exception.stacktrace' ] = stacktrace
477-
478470 if helper .create_issue :
479471 span .set_attribute (ATTRIBUTES_EXCEPTION_FINGERPRINT_KEY , sha256_string (helper .issue_fingerprint_source ))
480472
You can’t perform that action at this time.
0 commit comments