-
Notifications
You must be signed in to change notification settings - Fork 97
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
application crashed by native profiler after adding an instrumentation in integrations.json #1117
Comments
Hi @muhaook - if I understand correctly you are trying to create an automatic instrumentation, so something like what was done at https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/tree/main/src/OpenTelemetry.AutoInstrumentation/Instrumentations Could you confirm if that is really the case? |
The approach is currently not documented, but I'm really wondering now, if bytecode based instrumentation could be done using our plugin system 🤔 |
Thanks @pjanotti @RassK , yes I am trying to create an automatic instrumentation. I decompiled the ODP.NET library and had a quick look, there isn't any sources (ActivitySource/DiagnosticSource/etc) being used there. So looks like the automatic (bytecode based) instrumentation is the only way to generate telemetry in ODP.NET lib. I did inject entries in integrations.json and created functions such as OnMethodBegin and OnMethodEnd. I am using console apps to test the automatic instrumentation for |
I'm just currently guessing: @zacharycmontoya you probably have better insights to that? |
I can definitely now confirm it. After signing |
Hi @RassK , I can see Oracle.ManagedDataAccess.dll is strong-named in
But the issue happened in |
They (Microsoft) reworked the strong naming concept in .NET Core, so I guess all the restrictions are removed there. |
saw this in this doc just now
|
@muhaook, we have a SIG meeting few minutes ago. Two tasks are created to cover your issues
Thanks for your feedback. It will be great if you can share further information/any missing instrumentation/scenarios you need. It will be great if you can share any improvements in our code base also. |
@pjanotti , it works, thanks |
Bug Report
Symptom
Describe the bug
My sample application is using odp.net (Oracle.ManagedDataAccess.dll) to access Oracle DB. As current Opentelemetry does not support Oracle.ManagedDataAccess.dll yet, I decided to generate traces/spans using my instrumentation:
my sample application crashed after doing the above. error message:
Expected behavior
at this stage, I did not expect to see any traces/spans yet, but my sample app should not crash.
Runtime environment (please complete the following information):
attached please find logs
logs.zip
The text was updated successfully, but these errors were encountered: