aboutsummaryrefslogtreecommitdiffhomepage
path: root/pingora-proxy
diff options
context:
space:
mode:
authorMatthew Gumport <[email protected]>2024-10-21 10:20:49 -0700
committerKevin Guthrie <[email protected]>2024-10-28 11:51:38 -0400
commit54a641f6de869c2251c4597a59c022092deb6b4a (patch)
tree21065a98620de0fbdb3fac7d730fec072804d265 /pingora-proxy
parent7be56d4f3fd90fd44081accf47bd9cc995ae28ef (diff)
downloadpingora-54a641f6de869c2251c4597a59c022092deb6b4a.tar.gz
pingora-54a641f6de869c2251c4597a59c022092deb6b4a.zip
tag subrequests as such
This adds a hook during the flow where we move the write permit around for subrequests to refresh stale assets to tag the parent span as being part of a subrequest.
Diffstat (limited to 'pingora-proxy')
-rw-r--r--pingora-proxy/src/proxy_cache.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/pingora-proxy/src/proxy_cache.rs b/pingora-proxy/src/proxy_cache.rs
index e9914cf..865c592 100644
--- a/pingora-proxy/src/proxy_cache.rs
+++ b/pingora-proxy/src/proxy_cache.rs
@@ -153,6 +153,7 @@ impl<SV> HttpProxy<SV> {
{
// Put the write lock in the request
session.cache.set_write_lock(write_lock);
+ session.cache.tag_as_subrequest();
// and then let it go to upstream
break None;
}