Difference of behavior between JVM and Native builds #47070
Unanswered
KaranAhlawat
asked this question in
Q&A
Replies: 1 comment
-
Interesting to note, if you use the I tried adding my |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm trying to log CloudWatch metrics to stdout.
I setup the relevant code, and when testing in
dev
, the logs are as expected.Here is the relevant code -
I then proceed to build the images, one for JVM and one for Native. The amazon-lambda extension is being used. And I'm using the following commands
For jvm -
For native
When I run the app using the provide SAM template, the JVM one produces the expected logs.
However, the Native one always logs an empty object as
{}
.Any ideas what may be going wrong? I really can't figure it out and it hurts observability a lot
Beta Was this translation helpful? Give feedback.
All reactions