toggleable tracing via SpanMethodOptions#25
Conversation
this commit allows toggling database operations. this leaves on instrumentation config the decision of choosing which operation/method to trace. this is an initial implementation and serves as presentation of a possible approach to the functionality
|
@wesleyvicthor Thanks for raising this PR. IIUC, what #22 wants is adding an option to disable the full query text of the executed query, which is populated in This PR, which tries to control which DB operation will be recorded in the Span, seems not solving #22. If so, could you please create a new issue to discuss this |
|
Hi @XSAM thanks for the clarifications, indeed I misinterpreted the desired feature. I assumed(as well considering my case) that a desirable behaviour would be to choose which db operation's span to record. So By now I understand that our wish is for silencing I will open another issue explaining |
|
This proposed design treats all "span method options" as boolean. If we're willing to write more verbose options-defining functions, we don't need to confine ourselves only to boolean options in the future. As stated, these options could just as well be a bitfield, since they're only enabling independent things presumed to be disabled by default. |
|
Hi @seh indeed using bitwise operations could give more meaning to this feature. However, I believe this feature is not our target. I am closing this PR. Thanks for checking out. |
Hi, this is a proposal to the issue #22this PR allows toggling database operations. this leaves on
instrumentation config the decision of choosing which operation/method to trace.
this is an initial implementation and serves as presentation of a
possible approach to the functionality.
By default, operations must be explicitly configured
If you agree with the solution, I would move forward to add tests and implement the check for the remaining methods.
Any suggestion is welcome.
example