-
Notifications
You must be signed in to change notification settings - Fork 93
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
Instrumentation.EntityFrameworkCore - possibility to configure SetDbStatementForText
and SetDbStatementForStoredProcedure
#2331
Comments
Could you please provide information from the standard Bug report https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/issues/new?assignees=&labels=&template=bug_report.md ? Especially OTel version, OS, .NET Version. Additionally, what is the library with exact version, you are using to connect to MySQL 8? It will be great if you can provide Minimal, Reproducible Example. Eg. Console app. with dummy sql query which should be covered by a trace. MySQL in general is supported. For details see https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/blob/v0.6.0/docs/config.md#traces-instrumentations Edit: Debug logs can be also useful https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/blob/v0.6.0/docs/troubleshooting.md#collect-debug-logs |
What is exact MySql.Data library version? See "MySql.Data 8.0.31 and higher requires bytecode instrumentation". Bytecode instrumentation requires clr profiler which is note yet ready for arm64. |
Hi @Kielek, |
@lumbans, I have tested it locally, on Windows with Docker for Linux by Kielek@5c100eb Traces for EntityFrameworkCore are correctly handled.
Under the hood we are using https://github.com/open-telemetry/opentelemetry-dotnet-contrib/tree/main/src/OpenTelemetry.Instrumentation.EntityFrameworkCore As a workaround, you can try to use https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/blob/v0.6.0/docs/plugins.md The best option will be to contribute to https://github.com/open-telemetry/opentelemetry-dotnet-contrib and add possibility to configure it by env. variables or any other DevOps friendly way. The results with
|
SetDbStatementForText
and SetDbStatementForStoredProcedure
@Kielek how do we implement the workaround in an ASP.NET 6 app? |
@ronnypmuliawan, you have to imlement https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/blob/v0.6.0/docs/plugins.md for OpenTelemetry.Instrumentation.EntityFrameworkCore.EntityFrameworkInstrumentationOptions. Or, better, add support for configuring it by env. variable in the package https://github.com/open-telemetry/opentelemetry-dotnet-contrib/tree/main/src/OpenTelemetry.Instrumentation.EntityFrameworkCore. |
I think it would be better to do this in the auto instrumentation (plugin) itself instead of creating a new environment variable for this. The EntityCore instrumentation library options are not stable yet or even close to being stable. Let's not create environment variables for these just yet. |
@utpilla, the plugin will be working for the particular user. We are not including it in the distribution. I do not thing that including such env. variables to beta package will bring additional difficulties during stabilization process. |
A similar env var is being created in Go automatic instrumentation. See : open-telemetry/opentelemetry-go-instrumentation#240 |
There a lot of packages mentioned in the list of supported options here: https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/blob/v0.6.0/docs/plugins.md#supported-options
|
Proposal to move forward with this: Add two environmental variables: Lines 23 to 25 in fe8f8ae
Other (especially We should not enable this values by default for |
@lumbans, please check 1.4.0 release notes. |
Hi team,
I have setup and configuration of auto instrumentation for dotnet apps in container and integrated with Jaeger deployed to EKS Cluster,
the traces been show in Jaeger query, but didnt see the db statement call query.
Our apps using DB MySQL 8 and using dotnet
The text was updated successfully, but these errors were encountered: