Bug
Hello Datadog,
As reported in this issue https://github.com/aws/aws-lambda-java-libs/issues/212, the aws-lambda-java-core library expects the custom client context to be a map of
Upgrading to dd-trace 0.31.0 with #1166 is breaking Lambda invocations when aws-lambda-java-core is used (cc @Czechh @rochdev)
Is there a way to disable the lambda plugin via init config?
Environment
Unfortunately the Lambda integration cannot be disabled right now without disabling the entire AWS SDK plugin.
I'm currently trying to figure out internally if we could switch to a string to avoid hitting the bug.
can confirm that a similar marshalling error also occurs in aws-lambda-go due to this issue.
We're working internally to fix this but since we have multiple libraries to keep in sync it will take a bit of time. I would recommend to also open issues in each AWS library affected by this as well since from our understanding it's a bug on their side. We'll still provide a fix on our end for backward compatibility.
In case it helps others, we have disabled the aws sdk plugin for now by setting 'aws-sdk' as the value of the DD_TRACE_DISABLED_PLUGINS env variable.
Hey @josephsofaer , I'm having difficulty replicating this bug. I'm using dd-trace-js to instrument a JS lambda function that uses aws-sdk/client-lambda to invoke a Java lambda function using InvocationType: "RequestResponse". I have a fix in mind, but I'd like to verify that it works. Is there any way you could share a snippet of how you're invoking a Java lambda function that would illustrate this issue?
Most helpful comment
In case it helps others, we have disabled the aws sdk plugin for now by setting
'aws-sdk'as the value of theDD_TRACE_DISABLED_PLUGINSenv variable.