Skip to content

Auto Implementation not detecting services #102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
abhi670329 opened this issue Jun 20, 2024 · 5 comments
Open

Auto Implementation not detecting services #102

abhi670329 opened this issue Jun 20, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@abhi670329
Copy link

Describe the bug
We have added the environment variable and installed autodynatrace for the python application that uses flask and fastapi.
Environment we are using::
Hosted the applications on EKS
Python 3.10.14
Autodynatrace 2.0.0

Error::
root@data-ingestion-result-handler-ws-589cd69d7b-trht9:/app# python3
2024-06-20 15:25:39,068: 41 WARNING autodynatrace - init: Could not initialize the OneAgent SDK, AgentState: 3
Python 3.10.14 (main, May 14 2024, 08:39:53) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

@abhi670329 abhi670329 added the bug Something isn't working label Jun 20, 2024
@kvsudheerbabu
Copy link

anyone else has this problem? Suspecting some kind of update to oneagent break this feature or something else?

@bwcgn
Copy link

bwcgn commented Jul 25, 2024

Same here.

FastAPI 0.111.0
autodynatrace 2.1.1

@istrupin
Copy link

Same with me:

autodynatrace 2.1.1
fastapi 0.115.5
python 3.11

@bwburch1023
Copy link

bwburch1023 commented Mar 27, 2025

I had similar issue and I added the below to dockerfile and resolved the issue:
Just make sure to point to the actual location of your oneagent.

ENV LD_LIBRARY_PATH="/dynatrace/agent/lib64:/usr/lib/x86_64-linux-gnu:/lib/x86_64-linux-gnu"
ENV LD_PRELOAD="/dynatrace/agent/lib64/liboneagentgraalnativeruntime.so"

@agwermann
Copy link

agwermann commented Apr 17, 2025

Same for me:

autodynatrace = "^2.1.1"
fastapi = 0.115.8
python = 3.12

The above workaround did not work.

--

Update:
I was able to make it work: the Dynatrace oneagent was not correctly configured in the Kubernetes cluster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants