@clojurians.net Sorry for the repeat question — the short history in this Slack instance can be quite inconvenient!
If I set ::g/trace to the true at the namespace level, is there a way I can selectively disable tracing for specific functions in the defn
?
I know you can do ^::g/trace
... But is there an equivalent ^::g/untrace
or something?
Thank you!
PS: experience report continues: I'm bringing ghostwheel into all my projects, and I'm continuing to love it. I'd love to create a spec to confirm that output is hiccup format.. I remember a link somewhere to reagent that I'll be chasing down soon.
I haven't started the proposed doc changes, but it will definitely integrate some examples of configuring tracing, etc... I'm keeping a gist of all the relevant examples for my own use.
I've learned so much about spec and even Clojure using Ghostwheel.
...or a better question: is there a way to set ::g/trace level at the function level? (e.g., 0-5)? Thanks again!
@genekim Oh, ::g/trace
is just a regular metadata key like everything else and it's set to 0 by default. So you just have to attach it to the function like you would any other function metadata in Clojure, so either (>defn ^{::g/trace 0} fn-name ...)
or (>defn fn-name {::g/trace 0} ...}
Ah! The attr-map. Got it. Thank you!!!! (Adding it to my doc TODO list and gist. :)