-
Notifications
You must be signed in to change notification settings - Fork 985
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
Add option to disable tracing for individual commands #2373
Comments
Right now, you can achieve that by wrapping the |
In fact, I thought of another solution, that is, do not use the tracing of lettuce, and bury it in the redisTemplate, but I found that lettuce has the extension of tracing, and the provided one is not so perfect. I would like to ask if you will consider adding this piece in the future can be expanded |
Can I provide the corresponding code to expand here, add ignore request |
Now I have encountered a difficult problem. I need to record the results. I can’t get its output in the buried point. If the customized span can be called again in the output, it will be convenient for this block to perform some logic processing and other functions. |
In fact, I hope that the customized span can be executed after redis completes the result, otherwise the corresponding response result will not be obtained |
We could consider an extension in the form of a predicate whether to trace individual commands. A per-command Feel free to submit a pull request. |
ok. |
Would it be an option for you to switch to Micrometer Tracing (from Brave Tracing)? If so, then you could leverage the existing |
You can attach a callback to the future if you want to listen for responses. |
That's what I thought too. At present, I can't receive the response data as before. |
Was there any traction on this? I am attempting to use micrometer with spring data redis but unfortunately... the tracing spits out the password if the HELLO command ever fails which is a no-go (we wont go into why its failing, its embarrassing...). I attempted to wire myself in via spring with an All I really need is the ability to trash the one tag on the one span for the hello operation. |
Paging @marcingrzejszczak on how to suppress sending/handling an |
Deferring |
ObservationPredicate can now be used to filter unwanted commands.
That change is in place now. |
Thank you for the guidance/hint on the predicates being the wrong spot. Here's the snippet to blast it away without needing these tweaks.
|
@mp911de Hi, I'm using lettuce via spring data redis. @Bean
fun observationRegistryCustomizer(): ObservationRegistryCustomizer<ObservationRegistry> =
ObservationRegistryCustomizer<ObservationRegistry> { registry ->
registry.observationConfig()
.observationPredicate { observationName, context ->
if (context is LettuceObservationContext) {
if (context.requiredCommand.type == CommandType.HELLO || context.requiredCommand.type == CommandType.INFO) {
return@observationPredicate false
}
}
true
}
} |
As of Lettuce 6.3, there's a Lettuce-specific |
l dont show ping hello command . set observationPredicate
l use zipkin
only change or add tag don`t remove ping and hello .. command
Could you tell me where I can filter
The text was updated successfully, but these errors were encountered: