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

Exception AttributeError: "'NoneType' object has no attribute 'cast'" reported when instrumenting Pyhon app that uses cx_Oracle #94

Closed hanafury closed 10 months ago

hanafury commented 10 months ago

ISSUE: Process appears instrumented in Dynatrace (OA module is presented) but no trace / custom service is generated. Using AUTODYNATRACE_LOG_LEVEL=INFO at the end of the execution we can see in the CMD:

Exception AttributeError: "'NoneType' object has no attribute 'cast'" in <bound method SDKDllInterface.__del__ of <oneagent._impl.native.sdkctypesiface.SDKDllInterface object at 0x000000000391E448>> ignored

We have confirmed that OA SDK is loaded with: python -c "import oneagent; print(oneagent.initialize())"

And we have added the following lines into the relevant .py scripts: import oneagent import autodynatrace

But after starting the process, no trace is generated. In Dynatrace we can confirm the OA is loaded: image

COMPONENTS:

Thanks in advance!

dlopes7 commented 10 months ago

Autodynatrace doesn't support python 2