Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Backport #51826 to 5.0#51835

Merged
coury-clark merged 2 commits into
5.0from
backport-51826-to-5.0
May 11, 2023
Merged

Backport #51826 to 5.0#51835
coury-clark merged 2 commits into
5.0from
backport-51826-to-5.0

Conversation

@bobheadxi

Copy link
Copy Markdown
Member

Previously, every slow request would be logged with the first trace ID that the middleware encounters. This change ensures we make a copy of the base logger first before creating new loggers with additional fields.

See #51826

Test plan

n/a

(cherry picked from commit ce84251)

Previously, every slow request would be logged with the first trace ID
that the middleware encounters. This change ensures we make a copy of
the base logger first before creating new loggers with additional
fields.

Detected by @michaellzc who noticed all slow requests were being logged
with the same executor request, even when they weren't :)

## Test plan

n/a

(cherry picked from commit ce84251)
@cla-bot cla-bot Bot added the cla-signed label May 11, 2023
@bobheadxi bobheadxi requested a review from a team May 11, 2023 18:41
@sourcegraph-bot

sourcegraph-bot commented May 11, 2023

Copy link
Copy Markdown
Contributor

Codenotify: Notifying subscribers in CODENOTIFY files for diff 4e2c1351864ac743068e7b3afbc94b71030cc71b...801ac70a7e4e948c7a518dcb42140e6ad16360d9.

Notify File(s)
@keegancsmith internal/trace/httptrace.go
@sourcegraph/dev-experience internal/trace/httptrace.go

@bobheadxi bobheadxi force-pushed the backport-51826-to-5.0 branch from f3f730c to 801ac70 Compare May 11, 2023 18:43
@bobheadxi bobheadxi force-pushed the backport-51826-to-5.0 branch from 801ac70 to 22d6df5 Compare May 11, 2023 18:43
@coury-clark coury-clark enabled auto-merge (squash) May 11, 2023 18:58
@coury-clark coury-clark merged commit 7b5ce81 into 5.0 May 11, 2023
@coury-clark coury-clark deleted the backport-51826-to-5.0 branch May 11, 2023 19:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants