Skip to content

Python: Attempt to instrument while already instrument warning #2068

@herin049

Description

@herin049

Describe the bug
When using the OpenTelemetry Python auto-instrumentation layer, the following warning appears in the Lambda logs on every cold start:

[WARNING]	2025-12-11T04:45:34.152Z Attempting to instrument while already instrumented

Steps to reproduce
Deploy a lambda with the Python auto-instrumentation layer and perform an invocation.

What did you expect to see?

No warning message present.

What did you see instead?

The warning message above is present.

What version of collector/language SDK version did you use?
Version: latest

What language layer did you use?
Config: Python

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions