It would be nice to have a stub version of the wrapper. Currently when I'm running test on the lambda function code locally it will trigger error in two places:
-
extract_dd_trace_context() in the class _LambdaDecorator will throw exception because missing trace segment.
-
When metric.lambda_metric() is run in tests, it throws exception because it cannot send metrics to datadog.