-
Notifications
You must be signed in to change notification settings - Fork 99
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
Make bytecode instrumentation user-extensible #3901
Comments
@tchowice, could you please tell us more about your needs? Do you have any specific method/libraries in mind to be instrumented? Do you think that it will be valuable for the whole community? Speaking directly to your request:
Would you like to contribute some changes? |
@tchowice this is a new feature request, it will be good if you could provide the info asked above, thanks. |
SIG: closing for now, we can always re-open per demand on the feature. |
Feature Request
Are you requesting automatic instrumentation for a framework or library? Please describe.
Is your feature request related to a problem? Please describe.
The .NET AutoInstrumentation agent supports bytecode instrumentation, but this support is currently entirely contained in the AutoInstrumentation itself and does not appear to support user extension. If a user has a internal legacy library that they want to instrument without having to modify the library code, the only way to bytecode-instrument said library is to fork the opentelemtry-dotnet-instrumetation repo, write their own bytecode instrumentation code (via the
[InstrumentMethod]
attribute), and compile their own copy of the AutoInstrumentation agent, which is highly inconvenient.Describe the solution you'd like
We would like to see extensibility added to bytecode instrumentation. This extensibility could be implemented in one of the following two ways, or both:
[InstrumentMethod]
attributes, and define their own integration names. The AutoInstrumentation agent can then be configured to look for these libraries and load up the custom bytecode instrumentations defined within.The text was updated successfully, but these errors were encountered: