Skip to content
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

Function logs can be reported without faas.execution field set #335

Open
lahsivjar opened this issue Oct 20, 2022 · 0 comments
Open

Function logs can be reported without faas.execution field set #335

lahsivjar opened this issue Oct 20, 2022 · 0 comments
Labels
aws-λ-extension AWS Lambda Extension bug Something isn't working

Comments

@lahsivjar
Copy link
Contributor

APM AWS Lambda extension version (main):

Describe the bug
It is possible that function logs are reported without the faas.execution field set since the current code assumes that both platform.start and function logs for a given invocation will be reported in the same batch (relevant code).

To Reproduce
Steps to reproduce the behavior:

  1. Run a lambda function generating function logs with the latest version of extension (built from main).
  2. Invoke the function a bunch of times.
  3. Observe the missing faas.execution field on Kibana for some logs.

Expected behavior
All logs should have faas.execution set. This being said, it is not always possible to have faas.execution especially if the platform.start and function logs are delivered to two separate instances which I think should be possible.

Provide logs (if relevant):
Screenshot 2022-10-20 at 1 03 36 PM
^ Snapshot showing missing faas.execution in logs.

@lahsivjar lahsivjar added the bug Something isn't working label Oct 20, 2022
@github-actions github-actions bot added the aws-λ-extension AWS Lambda Extension label Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws-λ-extension AWS Lambda Extension bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant