-
Notifications
You must be signed in to change notification settings - Fork 845
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
Serialisation exception for ScheduledEvent #4645
Labels
bug
Something isn't working
Comments
@acm19 a pr would be appreciated. |
trask
pushed a commit
that referenced
this issue
Jan 14, 2022
Adds `FAIL_ON_UNKNOWN_PROPERTIES` to the paramter parser on the lambda as events coming from AWS have more fields than those represented in the libraries provided by AWS. Adds a custom `JodaModule` to the same parser to support `ScheduledEvent` which for now uses Joda Time. At the same time avoid the real Joda Module to not have extra dependencies. Resolves: #4645
RashmiRam
pushed a commit
to RashmiRam/opentelemetry-auto-instr-java
that referenced
this issue
May 23, 2022
…4724) Adds `FAIL_ON_UNKNOWN_PROPERTIES` to the paramter parser on the lambda as events coming from AWS have more fields than those represented in the libraries provided by AWS. Adds a custom `JodaModule` to the same parser to support `ScheduledEvent` which for now uses Joda Time. At the same time avoid the real Joda Module to not have extra dependencies. Resolves: open-telemetry#4645
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When instrumenting a Lambda triggered by
ScheduledEvent
a parsing exception is produced:Steps to reproduce
Create a lambda triggered by a
ScheduledEvent
and instrument it using OpenTelemetry following this tutorial: https://aws-otel.github.io/docs/getting-started/lambda/lambda-java.What did you expect to see?
I expect no exception.
What did you see instead?
The lambda failed with an exception.
What version are you using?
v1.7.0
Environment
Java 11 Corretto running in AWS Lambda.
Additional context
I think a good way to fix the problem would be to ignore unknown properties by this object mapper:
opentelemetry-java-instrumentation/instrumentation/aws-lambda-1.0/library/src/main/java/io/opentelemetry/instrumentation/awslambda/v1_0/TracingRequestWrapperBase.java
Line 22 in 6063a16
The text was updated successfully, but these errors were encountered: