Skip to content

Commit e6078a0

Browse files
committed
minor change to updating initial request id
1 parent 639008c commit e6078a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

collector/receiver/telemetryapireceiver/receiver.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,9 @@ func (r *telemetryAPIReceiver) createLogs(slice []event) (plog.Logs, error) {
233233
if requestId != "" {
234234
logRecord.Attributes().PutStr(semconv.AttributeFaaSInvocationID, requestId)
235235

236-
// If this is the first event in the invocation with a request id (typically "platform.start"),
236+
// If this is the first event in the invocation with a request id (i.e. the "platform.start" event),
237237
// set the current invocation id to this request id.
238-
if r.currentFaasInvocationID == "" {
238+
if el.Type == string(telemetryapi.PlatformStart) {
239239
r.currentFaasInvocationID = requestId
240240
}
241241
}

0 commit comments

Comments
 (0)