-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lambda timeout with Tracing 1.5.1 using async methods #659
Comments
Thanks for opening your first issue here! We'll come back to you as soon as we can. |
Hi @JonathanVerberne thanks for raising the issue, I am taking a look at this now and will try reproduce the behaviour. Will update soon. |
Issue reproducible. Working on a fix |
@JonathanVerberne |
That's fantastic... thank you @hjgraca ! |
Release 1.15 |
@JonathanVerberne version 1.5.2 now available on NuGet |
Expected Behaviour
I've recently updated my Powertools tracing package from 1.4.2 to 1.5.1, since doing this I've noticed my lambda is timing out which was not the case when using 1.4.2.
I've noticed the issue is when using 1.5.1 any method that is called must have the [Tracing] attribute on top of the method, then it will not timeout, but this is not the same for version 1.4.2 if the [Tracing] attribute on the method is missing it will not cause the lambda to timeout. See code snippet below.
Current Behaviour
This is the output when testing my lambda in the AWS lambda test console. The lambda executes but does not end once it's finished executing the code, it only ends once it hits the Lambda timeout that's configured and in this case it's 30 seconds.
Code snippet
Possible Solution
No response
Steps to Reproduce
The code snipped above works using version 1.4.2 but will timeout when using 1.5.1 - unless you add the [Tracing] attribute above the public async Task<string?> GetCallingIp().
Works with 1.4.2 (not with 1.5.1)
public async Task<string?> GetCallingIp()
Works with 1.5.1 - when [Tracing] added.
[Tracing]
public async Task<string?> GetCallingIp()
Powertools for AWS Lambda (.NET) version
latest
AWS Lambda function runtime
dotnet8
Debugging logs
The text was updated successfully, but these errors were encountered: