parent
d49bd89061
commit
6962410976
1 changed files with 1 additions and 11 deletions
|
|
@ -81,17 +81,7 @@ class BackendSpanExporter(TracingExporter):
|
|||
traces: list[dict[str, Any]] = []
|
||||
spans: list[dict[str, Any]] = []
|
||||
|
||||
# Categorize items into traces and spans
|
||||
for item in items:
|
||||
if hasattr(item, 'export') and callable(item.export):
|
||||
export_data = item.export()
|
||||
if export_data:
|
||||
if isinstance(item, Trace):
|
||||
traces.append(export_data)
|
||||
else:
|
||||
spans.append(export_data)
|
||||
|
||||
data = traces + spans
|
||||
data = [item.export() for item in items if item.export()]
|
||||
payload = {"data": data}
|
||||
|
||||
headers = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue