diff --git a/src/analytics/RageshakeSpanProcessor.ts b/src/analytics/RageshakeSpanProcessor.ts index c58c2f7c..b5b055f2 100644 --- a/src/analytics/RageshakeSpanProcessor.ts +++ b/src/analytics/RageshakeSpanProcessor.ts @@ -98,7 +98,11 @@ export class RageshakeSpanProcessor implements SpanProcessor { tags: dumpAttributes(span.attributes), logs: span.events.map((event) => ({ 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 }, + ], })), }; }),