Problem
Right now, even though span is not recording, redisotel creates new span and still tracing out the information. Can we have someway of skipping?
We do have filter I'm aware of it. But irrespective of any command, if we want to have ability to skip spanning based on the recording state of the span in context at the root/call-site level, there is not option for it.
Proposed Solutions
- adding a flag on options, that says skip trace if span not recording. (
SkipSpanIfNotRecording)
- adding a context parm to the filter functions (
filterProcess , filterProcessPipeline), so that let users create a span from context and check if it is recording and should they skip it.
- hard respect the span recording (yeah it is quite odd, but otelsql already doing it)
Problem
Right now, even though span is not recording,
redisotelcreates new span and still tracing out the information. Can we have someway of skipping?We do have filter I'm aware of it. But irrespective of any command, if we want to have ability to skip spanning based on the recording state of the span in context at the root/call-site level, there is not option for it.
Proposed Solutions
SkipSpanIfNotRecording)filterProcess,filterProcessPipeline), so that let users create a span from context and check if it is recording and should they skip it.