Can we initiate Elastic APM in existing running application without any code changes?

Elastic APM
I have added APM in my .net core web application using .net core agent but I have below question

  1. can i turn off/on APM without code change or redeployment ?
  2. for any existing [.net core]running application , if i want to use Elastic APM Out of Box , can we do that without single line of code change ?


Hi @Surekha_Deshmukh,

2: You can do that but only during startup. So no code change is needed, but you can only attach the agent when the process is starting - attaching to running processes is not passible. For this we have a feature currently in Beta that does exactly that. You can find it here - our plan is to get this out of beta soon. There is a documentation linked on that page on how to use it. The agent code itself is the same as the GA agent, so beta only applies to the runtime attachment code part.

1: Not currently, but we have an issue for thus in our GitHub repo and we plan to have this capability in the future.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.