Skip to content

ImportError: cannot import name 'std_to_otel' from 'opentelemetry._logs' #1118

@digjanaik27193

Description

@digjanaik27193

name: Bug report
about: Create a report to help us improve
title: cannot import name 'std_to_otel' from 'opentelemetry._logs'
labels: bug
assignees: ''


Describe the bug
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.

What did you expect to see?
Should be able to see traces in Dynatrace.

What did you see instead?
No tracing.

What version of collector/language SDK version did you use?
arn:aws:lambda:us-west-2:901920570463:layer:aws-otel-python-amd64-ver-1-29-0:2
arn:aws:lambda:us-west-2:901920570463:layer:aws-otel-python-amd64-ver-1-32-0:2

What language layer did you use?
Config: Python

Additional context
Add any other context about the problem here.

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