Skip to content

Commit

Permalink
Update src/OpenTelemetry.Instrumentation.AWSLambda/Implementation/AWS…
Browse files Browse the repository at this point in the history
…MessagingUtils.cs


#1034: review suggestion

Co-authored-by: Christian Neumüller <[email protected]>
  • Loading branch information
rypdal and Oberon00 authored Apr 13, 2023
1 parent 546ef3f commit 0460e9b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ internal static PropagationContext ExtractParentContext(SQSEvent.SQSMessage sqsM
internal static PropagationContext ExtractParentContext(SNSEvent snsEvent)
{
// We assume there can be only a single SNS record (message) and records list is kept in the model consistency.
// See https://aws.amazon.com/sns/faqs/ for details.
// See https://aws.amazon.com/sns/faqs/#Reliability for details.
var record = snsEvent?.Records?.LastOrDefault();
return ExtractParentContext(record);
}
Expand Down

0 comments on commit 0460e9b

Please sign in to comment.