We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8470f0 commit 3e685e9Copy full SHA for 3e685e9
1 file changed
packages/opentelemetry-node/src/exporters/tracing-exporter.ts
@@ -26,8 +26,27 @@ export class TraceoTracingExporter extends OTLPTraceExporter {
26
return;
27
}
28
29
+ const spans = items.map((span) => {
30
+ return {
31
+ name: span.name,
32
+ attributes: span.attributes,
33
+ links: span.links,
34
+ events: span.events,
35
+ duration: span.duration,
36
+ startTime: span.startTime,
37
+ endTime: span.endTime,
38
+ parentSpanId: span?.parentSpanId,
39
+ kind: span.kind,
40
+ resource: span.resource,
41
+ spanContext: {
42
+ traceId: span.spanContext().traceId,
43
+ spanId: span.spanContext().spanId
44
+ }
45
46
+ });
47
+
48
transport.request({
- body: items,
49
+ body: spans,
50
url: CAPTURE_ENDPOINT.TRACING,
51
method: "POST",
52
callback: () => {
0 commit comments