Skip to content

Would be great to have a test mode that stub out the library #17

Closed
@jackyjjc-canva

Description

@jackyjjc-canva

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:

  1. extract_dd_trace_context() in the class _LambdaDecorator will throw exception because missing trace segment.

  2. When metric.lambda_metric() is run in tests, it throws exception because it cannot send metrics to datadog.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions