Skip to content

Import error - ImportError: cannot import name 'std_to_otel' from 'opentelemetry._logs' #4715

@digjanaik27193

Description

@digjanaik27193

Describe your environment

OS: Linux
Python version: python3.12
SDK version: 1.25.0
API version: 1.25.0

What happened?

I have OTEL layer auto instrumented lambda in AWS region us-west-2 which uses OTEL layer -
arn:aws:lambda:us-west-2:901920570463:layer:aws-otel-python-amd64-ver-1-29-0:2

The traces were correctly being sent to OTEL collector -> dynatrace until 21st July, but we noticed no tracing after that.
I checked the logs for CloudWatch and started seeing this error as attached in - log-events-viewer-result.8.csv

log-events-viewer-result (8).csv

We tried updating the lambda layer to the latest version [arn:aws:lambda:us-west-2:901920570463:layer:aws-otel-python-amd64-ver-1-32-0:2] but still see same issue

Steps to Reproduce

Auto instrumented Lambda python function.

Expected Result

Should be able to see traces in Dynatrace.

Actual Result

No tracing.

Additional context

No response

Would you like to implement a fix?

None

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions