Skip to content

KeyError: 'x-datadog-trace-id' when tracing is turned off. #339

@ddhanak

Description

@ddhanak

Expected Behavior

If tracing is explicitly turned off, when setting the correlation ids, we should not get the KeyError: x-datadog-trace-id.

Actual Behavior

There a traceback that is printed in the logs
image

Steps to Reproduce the Problem

  1. Turn off tracing
  2. Execute lambda

Specifications

  • Datadog Lambda Layer version: 43
  • Python version: 3.10

Stacktrace

See the screenshot posted above.

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