How can I trace Database operations with opentelemetry in ASP.NET Core?

Viewed 772

I have an ASP.NET Core Web API project, let's call it projectA.

ProjectA connects to a MySQL database.

Project A simply does this:

  • get a request
  • then make a query to the connected MySQL database
  • then return response to request

I want to measure time spent for database operation and send result to Jaeger.

For http requests opentelemetry automatically measure time spent for request and send results to jaeger.

How can I do the same thing with opentelemetry for database operations?

1 Answers
Related