diff options
Diffstat (limited to 'pingora-cache/src')
-rw-r--r-- | pingora-cache/src/lib.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pingora-cache/src/lib.rs b/pingora-cache/src/lib.rs index 1a97041..2aa2f7c 100644 --- a/pingora-cache/src/lib.rs +++ b/pingora-cache/src/lib.rs @@ -1142,6 +1142,14 @@ impl HttpCache { predictor.mark_uncacheable(self.cache_key(), reason); } } + + /// Tag all spans as being part of a subrequest. + pub fn tag_as_subrequest(&mut self) { + self.inner_mut() + .traces + .cache_span + .set_tag(|| Tag::new("is_subrequest", true)) + } } /// Set the header compression dictionary, which helps serialize http header. |