dynatrace-oss / OneAgent-SDK-Python-AutoInstrumentation

autodynatrace, a python library that implements automatic instrumentation using the OneAgent SDK for Python
Other
62 stars 28 forks source link

Encountering "Could not initialize the OneAgent SDK, AgentState: 3" warning when running the server #85

Closed oruchkin closed 8 months ago

oruchkin commented 1 year ago

Issue: After executing the command python manage.py runserver I encountered the following warning messages in my console:

2023-07-20 13:10:59,726: 29813 WARNING autodynatrace - init: Could not initialize the OneAgent SDK, AgentState: 3
WARNING:autodynatrace:Could not initialize the OneAgent SDK, AgentState: 3
2023-07-20 13:11:00,290: 29818 WARNING autodynatrace - init: Could not initialize the OneAgent SDK, AgentState: 3
WARNING:autodynatrace:Could not initialize the OneAgent SDK, AgentState: 3
Screenshot 2023-07-20 at 16 19 28

I'm doing it with django i've added autodynatrace.wrappers.django, in installed apps in settings.py. Is it bad, can i ignore it? How can i fix this warning message?

kashirin-dm commented 8 months ago

The same

dlopes7 commented 8 months ago

You need to have the Dynatrace OneAgent installed on the host where python is running

kashirin-dm commented 8 months ago

I used an Alpine image, and when I changed to a regular Python image, the error disappeared.