Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
12-28-2021 12:08 PM - last edited on 03-21-2022 03:37 PM by Ryan.Paredez
Hello, I have a net 5 WebAPI deployed in a docker linux container. I want to instrument the application in AppDynamics. The application works and I test it everytime with swagger
I've tried 2 implementations
The first scenario didn't work for me I got a consistent error, a single log line saying "use clr profiler",
The second does nothing at all I have no feedback what so ever and no log is created
This is my Docker configuration
"Docker": {
"commandName": "Docker",
"launchBrowser": true,
"launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/Swagger",
"environmentVariables": {
"CORECLR_PROFILER": "{57e1aa68-2229-41aa-9931-a6e93bbc64d8}",
"CORECLR_ENABLE_PROFILING": "1",
"CORECLR_PROFILER_PATH": "/app/bin/Debug/net5.0/runtimes/linux-64/native/libappdprofiler.so",
"APPDYNAMICS_LOG_PATH": "/app/bin/Debug/net5.0"
},
"publishAllPorts": true,
"useSSL": true
}
And this is the app dynamics configuration
{
"feature": [
"FULL_AGENT"
],
"controller": {
"host": "MYHOST.saas.appdynamics.com",
"port": 443,
"account": "myAccount",
"password": "mypassword",
"ssl": true,
"enable_tls12": true
},
"application": {
"name": "myapplicationname",
"tier": "my-appliation-tier",
"node": ""
},
"log": {
"directory": "/app/bin/Debug/net5.0",
"level": "ALL"
}
}
Solved! Go to Solution.
01-06-2022 09:48 AM
I found this info - please let me know if it helped.
Can you please confirm the .Net Microservices Agent version that you are using to instrument the .Net 5 application? The .Net Microservices agent started supporting .Net 5 with agent version >21.10. Ref below link for details:
https://docs.appdynamics.com/21.10/en/application-monitoring/install-app-server-agents/net-agent/net...
If you are using an older agent, could you kindly try upgrading to the latest 21.11 version of the agent and verify the behavior?
Thanks,
Ryan, Cisco AppDynamics Community Manager
Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
Check out Observabiity in Action
new deep dive videos weekly in the Knowledge Base.
01-17-2022 09:09 AM
Hi Ryan,
I was using the latest, its a brand new solution.
01-18-2022 09:45 AM
Just to confirm, you are using the latest version, and are still having the issue?
Thanks,
Ryan, Cisco AppDynamics Community Manager
Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
Check out Observabiity in Action
new deep dive videos weekly in the Knowledge Base.
01-18-2022 12:41 PM
Yes with the .net core agent from the nuget package yes, I was going to test the linux agent from step 2 but I'm changing scope for now
01-18-2022 02:26 PM
I was chatting with some internal people and it's been suggested you contact support.
You can get to the Support Portal from here: https://www.appdynamics.com/support
Please do follow back up on this thread if a solution is reached with support.
Thanks,
Ryan, Cisco AppDynamics Community Manager
Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
Check out Observabiity in Action
new deep dive videos weekly in the Knowledge Base.
01-18-2022 02:39 PM
@Maximiliano.Guillen - As your application is net 5 WebApi deployed in a docker linux container you will need to use the .Net agent on Linux as mentioned below:
Also kindly find below the below the inputs for 2 implementation you tried:
Let us know if you still face any issues.
01-19-2022 05:45 AM
Thanks for the help, I'll try this next, and re-open or create a support ticket later if necessary.
01-19-2022 10:17 AM - last edited on 01-19-2022 11:01 AM by Ryan.Paredez
Is it mandatory for the linux files to be in opt/appdynamics/dotnet ?
I could place them in what ever folder in the container and map the env variable, correct?
01-19-2022 11:28 AM
@Maximiliano.Guillen - Yes you can keep in any folder we just need to make sure all the AppD dlls are also present their.
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form