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 2
2
3
3
import json
4
4
import sys
5
- import traceback
6
5
from collections import defaultdict
7
6
from collections .abc import Mapping , Sequence
8
7
from dataclasses import dataclass , field
@@ -468,13 +467,6 @@ def record_exception(
468
467
span .set_attribute (ATTRIBUTES_VALIDATION_ERROR_KEY , err_json )
469
468
attributes [ATTRIBUTES_VALIDATION_ERROR_KEY ] = err_json
470
469
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
-
478
470
if helper .create_issue :
479
471
span .set_attribute (ATTRIBUTES_EXCEPTION_FINGERPRINT_KEY , sha256_string (helper .issue_fingerprint_source ))
480
472
You can’t perform that action at this time.
0 commit comments