-
Notifications
You must be signed in to change notification settings - Fork 49
Implement command tracing #165
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
base: master
Are you sure you want to change the base?
Conversation
Could not find a way to implement it. Tested manually the retry, it seems to work fine.
I expect to have time to look at this in the next two weeks or so. I don't currently know of an easy place to Dispose or set the status so I'll need to take some time to see what I can do. I appreciate the idea for the types of tests you suggested but since our tests aren't true unit tests (no server mock class, and developing one is not a trivial task) I stimulate situations like this manually. |
A few questions for you:
|
I believe the retry is covered by the
Added a
Yes
True but there is no central place to get that value right ? |
I'm not really sure what you mean by central place. If you mean "is there one place to set the status_code?", the answer is no. As I stated, |
In case of retry, the new command was started before the span of the previous command was disposed. It should be better now. |
Closes #79, supersedes #80.
Following the OTEL semconv https://opentelemetry.io/docs/specs/semconv/database/database-spans.
@shannonklaus could help me with that:
AsyncCommand.Finish
is not called.db.response.status_code
. Though, it seems like we only have this information in the individual ParseResult methods. I'm wondering if there is a single place where we could set the status.