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

Can't go language use lambda logs collect function? #353

Open
kevin-you2 opened this issue Dec 15, 2022 · 4 comments
Open

Can't go language use lambda logs collect function? #353

kevin-you2 opened this issue Dec 15, 2022 · 4 comments
Labels
aws-λ-extension AWS Lambda Extension community Issues and PRs created by the community triage Issues and PRs that need to be triaged

Comments

@kevin-you2
Copy link

I want to see logs page like below in APM page.
323

I also added a layer to that
스크린샷 2022-12-15 오후 6 01 12

Relevant logs are also recorded in CloudWatch.
스크린샷 2022-12-15 오후 6 03 21

But I don't see any logs in APM.

@github-actions github-actions bot added aws-λ-extension AWS Lambda Extension community Issues and PRs created by the community triage Issues and PRs that need to be triaged labels Dec 15, 2022
@lahsivjar
Copy link
Contributor

lahsivjar commented Jan 10, 2023

@kevin-you2 You have to enable function log collection by setting an env variable ELASTIC_APM_LAMBDA_CAPTURE_LOGS to true.

Apologies, the above is not correct as capture logs are enabled by default. I can see the logs and it seems that we are subscribed to function logs already. Is your lambda function generating logs? Can you share the lambda function if possible?

@kevin-you2
Copy link
Author

aws lambda Is it not available in golang?

@simitt
Copy link
Contributor

simitt commented Mar 22, 2023

Monitoring AWS lambda functions is currently only supported for nodejs, python and java.

@lahsivjar
Copy link
Contributor

lahsivjar commented Mar 31, 2023

While go-agent doesn't officially support monitoring lambda functions, it can do this. Here is an example.

Note that the interface, or rather the feature itself, is not officially supported so there are no guarantees of its future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws-λ-extension AWS Lambda Extension community Issues and PRs created by the community triage Issues and PRs that need to be triaged
Projects
None yet
Development

No branches or pull requests

3 participants