Load agent without code change
See original GitHub issueBy implementing IHostingStartup
and using the following two environment variables we could load the agent into an ASP.NET Core app without any code change or even recompilation:
DOTNET_ADDITIONAL_DEPS
ASPNETCORE_HOSTINGSTARTUPASSEMBLIES
I blogged about this feature here.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Starting Instrumentation Agent after VM Startup - java
An agent allows you to inject code into other processes, without changing stuff in the targets code. But if you are inside your...
Read more >JEP 451: Prepare to Disallow the Dynamic Loading of Agents
This means altering the code in a class so that it emits events to be consumed by a tool outside the application, without...
Read more >Building a dynamic instrumentation agent for Java
The Sqreen agent applies dynamic instrumentation in order to report and protect the application without code modification.
Read more >Guide to Java Instrumentation
A guide to understanding Java Instrumentation and implementing custom agents.
Read more >How to add extensions to the OpenTelemetry Java Agent
The agent doesn't modify the source code directly, but rather the bytecode that is loaded into the JVM. This is done while the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Another question about this in discuss: https://discuss.elastic.co/t/instrument-any-net-core-application/207680
As discussed on discuss, in order to support ASP.NET Core 2.1 we’ll probably need
IHostingStartup
.Implemented in #828.