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
Investigate a possible bug in (where (tagged "foo")) #42
Comments
Even when culling it down further to just this, it fails to produce output:
|
This seems OK to me. Can you reproduce on master? (logging/init :file "riemann.log")
(tcp-server)
(udp-server)
(ws-server)
(periodically-expire 10)
(let [index (default :ttl 300 (update-index (index)))]
(streams
index
(where (tagged "foo")
(partial prn "foo")
(else
(partial prn "not foo"))))
) Riemann::Client.new << {service: "x", tags: ["foo", "bar"]}
|
Aha! I did discover a problem with (tagged-any) and (tagged-all), though: they only work with collections of tags, not single strings. I'll fix that right away. (tagged-any ["foo"] prn) should work, in the mean time. :) |
Fixed in 4d1f932. Enjoy! :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://gist.github.com/0a96223a1b1cc6680375
The text was updated successfully, but these errors were encountered: