-
Notifications
You must be signed in to change notification settings - Fork 190
Activity (OpenTelemetry) for DataReader #450
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
Comments
One more thing: please make |
@jods4 It sounds like you have four requests:
|
That's a good point. (It's not something I often use myself).
Yes, looks like this standard tag is usable for that purpose.
Let me double-check next week, it looks like I might have missed something here. Or is there an option or a specific step to take to get
I agree, tracing/logging as it can contain sensitive info, so it's good that you offer safe-by-default options. |
The
I'll follow up with the dev team to answer your other questions. |
Thanks for the explanation. In my case That being said, I observe that |
I would love to have an activity span that starts when a DataReader is created and stops when it's closed, and that includes the number of read rows.
It is useful as fetching/processing can take significant time for some queries. Knowing when
ExecuteQuery
completed is only a small part of the perf profile. Knowing how many rows a query returns is also quite useful.If you want some context/inspiration, I had added this myself when I was patching older ODP.NET releases to add ActivitySource into the provider: https://github.com/jods4/OracleApmPatcher/blob/master/Src/Program.cs#L288
I have seen that the DataReader fetches (network round-trips) are instrumented, which is not exactly the same. It could be an alternative, if you add the actual number of rows fetched, and ideally an activity when the reader is closed.
BTW: why do you parse and re-construct SQL text in
SpanStart
? Why is it not enough/okay to receive the actual text that was executed? This is performed on each query and allocates a lot of strings. I would love an option to get the raw, unprocessed, query text.The text was updated successfully, but these errors were encountered: