Recursive Logging bug in Docker: Invalid type NoneType for attribute 'taskName' value. Expected one of ['bool', 'str', 'bytes', 'int', 'float'] or a sequence of those types #3560
Labels
bug
Something isn't working
Describe your environment Docker compose that includes 1.21/0.42b0 of the API/SDK and contrib. I manually set PYTHONPATH to point to sitecustomize in order to trigger auto-instrumentation. However, the same app and sitecustomize work outside of docker
Steps to reproduce
Dockerfile:
docker-compose.yml:
test_app.py:
Commands:
What is the expected behavior?
Logs are instrumented and exported.
What is the actual behavior?
I get an infinite stack trace loop:
By adding print statements into the attributes module, I figured out that the warning is as follows:
Invalid type NoneType for attribute 'taskName' value. Expected one of ['bool', 'str', 'bytes', 'int', 'float'] or a sequence of those types
My guess is that the taskName is None because it is running inside Docker or something along those lines.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: