Skip to content

Commit

Permalink
add warning log when too many tags
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyzhao2018 committed Dec 11, 2023
1 parent c61bbc2 commit a6c8db3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/serverless/invocationlifecycle/trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ func (lp *LifecycleProcessor) endExecutionSpan(endDetails *InvocationEndDetails)
}
}

if len(executionSpan.Meta) > 1000 {
log.Warn("The number of span tags for the aws.lambda span is over 1000. This may cause unexpected behaviours such as missing spans. Please consider setting DD_CAPTURE_LAMBDA_PAYLOAD_MAX_DEPTH to limit the number of span tags used for capturing payloads.")
}

return executionSpan
}

Expand Down

0 comments on commit a6c8db3

Please sign in to comment.