TL;DR: You can disable tracing by setting the environment variable
But when I made a request to my endpoint, I received the error:
Error: Missing AWS Lambda trace data for X-Ray. Expected _X_AMZN_TRACE_ID to be set.
I noticed this was coming from aws-xray-sdk-core.
I found an issue that recommended setting the environment variable
I was able to access my endpoint without a 500 internal server error, but the error stacktrace was still logged to my console. This made debugging difficult.
So I tried setting the environment variable
Here, the only error in my console was:
_X_AMZN_TRACE_ID is missing required data.
Ultimately, I turned off tracing by setting the environment variable
This was the solution I chose for local development.