Add the event name to the rageshake span processor export
This commit is contained in:
parent
8437e263af
commit
f5e2161a9e
1 changed files with 5 additions and 1 deletions
|
@ -98,7 +98,11 @@ export class RageshakeSpanProcessor implements SpanProcessor {
|
||||||
tags: dumpAttributes(span.attributes),
|
tags: dumpAttributes(span.attributes),
|
||||||
logs: span.events.map((event) => ({
|
logs: span.events.map((event) => ({
|
||||||
timestamp: hrTimeToMicroseconds(event.time),
|
timestamp: hrTimeToMicroseconds(event.time),
|
||||||
fields: dumpAttributes(event.attributes ?? {}),
|
// The name of the event is in the "event" field, aparently.
|
||||||
|
fields: [
|
||||||
|
...dumpAttributes(event.attributes ?? {}),
|
||||||
|
{ key: "event", type: "string", value: event.name },
|
||||||
|
],
|
||||||
})),
|
})),
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Add table
Reference in a new issue