Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

convert l1 timing headers into otel spans #158

Merged
merged 2 commits into from
Sep 12, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
only otel / forward timing headers on cache misses where they're rele…
…vant / not-cached
willscott committed Sep 12, 2023

Verified

This commit was signed with the committer’s verified signature.
commit 3700ba6a2c5001f7ef3f62e4c5f6f03223b89e4e
2 changes: 1 addition & 1 deletion fetcher.go
Original file line number Diff line number Diff line change
@@ -307,7 +307,7 @@ func (p *pool) fetchResource(ctx context.Context, from string, resource string,
proto = resp.Proto
respReq = resp.Request

if timing != nil {
if timing != nil && respHeader.Get(saturnCacheHitKey) != saturnCacheHit {
timingHeaders := respHeader.Values(servertiming.HeaderKey)
for _, th := range timingHeaders {
if subReqTiming, err := servertiming.ParseHeader(th); err == nil {