Skip to content

Commit 6a6f9c7

Browse files
committed
modify exporter span parse
1 parent fbba8a8 commit 6a6f9c7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cozeloop/internal/trace/exporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def transfer_to_upload_span_and_file(spans: List['Span']) -> (List[UploadSpan],
173173

174174
def parse_tag(span_tag: Dict[str, Any], is_system_tag: bool) -> (Dict[str, str], Dict[str, int], Dict[str, float], Dict[str, bool]):
175175
if not span_tag:
176-
return {}, {}, {}
176+
return {}, {}, {}, {}
177177

178178
v_str_map = {}
179179
v_long_map = {}

cozeloop/internal/trace/span_processor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def export_func(ctx: dict, items: List[Any]):
158158
try:
159159
upload_spans, upload_files = transfer_to_upload_span_and_file(spans)
160160
except Exception as e:
161-
logger.warning(f"transfer_to_upload_span_and_file fail")
161+
logger.warning(f"transfer_to_upload_span_and_file fail, {e}")
162162
return
163163

164164
event_err_msg = ""

0 commit comments

Comments
 (0)