Skip to content

Commit 2fc8e35

Browse files
aztalbotschavis
andauthored
docs(lambda-extension): update distributed tracing headers warning; (#28319)
* docs(lambda-extension): update cache header warning; * docs(lambda-extension): tweak language; * docs(lambda-extension): accept pr comment Co-authored-by: Sarah Chavis <[email protected]> --------- Co-authored-by: Sarah Chavis <[email protected]>
1 parent 0c986fc commit 2fc8e35

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

website/content/docs/platform/aws/lambda-extension.mdx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,16 @@ request will be forwarded to Vault and the response returned and cached.
243243
Currently, the cache key is a hash of the request URL path, headers, body, and
244244
token.
245245

246-
<Warning title="Distributed tracing headers may negate the cache">
247-
248-
The Vault Lambda Extension cache key includes headers from proxy requests. As
249-
a result, distributed tracing headers like `traceparent` can lead to
250-
individualized hashes that make repeated requests appear unique and cause cache
251-
misses.
246+
<Warning title="Nonstandard distributed tracing headers may negate the cache">
247+
248+
The Vault Lambda Extension cache key includes headers from proxy requests, but
249+
excludes the standard distributed tracing headers `traceparent` and
250+
`tracestate` because trace IDs are unique per request and would lead to unique
251+
hashes for repeated requests.
252+
253+
Some distributed tracing tools may add nonstandard tracing headers, which can
254+
also lead to individualized hashes that make repeated requests unique and
255+
cause cache misses.
252256

253257
</Warning>
254258

0 commit comments

Comments
 (0)