Skip to content

Conversation

@JamieB-gu
Copy link
Contributor

We're not using them for anything, and we're trying to reduce noise in the logs by removing fields we don't need.

In addition, these fields duplicate information that's already in the path, which is also logged. For example, a request to /AppsArticle would have "apps" as the platform and "article" as the type. Furthermore, an extra function call is needed to log them whenever a new handler is created, whereas the path is logged automatically for every request. This may be why they're currently logged inconsistently, with both "app" and "apps" being used, and the platform sometimes not included, although some of this could also be solved by changing the types on recordTypeAndPlatform.

Part of #13136.

We're not using them for anything, and we're trying to reduce noise in
the logs by removing fields we don't need.

In addition, these fields duplicate information that's already in the
path, which is also logged. For example, a request to `/AppsArticle`
would have "apps" as the platform and "article" as the type.
Furthermore, an extra function call is needed to log them whenever a new
handler is created, whereas the path is logged automatically for every
request. This may be why they're currently logged inconsistently, with
both "app" and "apps" being used, and the platform sometimes not
included, although some of this could also be solved by changing the
types on `recordTypeAndPlatform`.
@JamieB-gu JamieB-gu added this to the Health milestone Jan 9, 2026
@JamieB-gu JamieB-gu self-assigned this Jan 9, 2026
@JamieB-gu JamieB-gu requested a review from a team as a code owner January 9, 2026 15:31
@JamieB-gu JamieB-gu added the maintenance Departmental tracking: maintenance work, not a fix or a feature label Jan 9, 2026
@github-actions
Copy link

github-actions bot commented Jan 9, 2026

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

@JamieB-gu JamieB-gu added the run_chromatic Runs chromatic when label is applied label Jan 9, 2026
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Jan 9, 2026
@JamieB-gu JamieB-gu merged commit 4c24724 into main Jan 12, 2026
27 checks passed
@JamieB-gu JamieB-gu deleted the remove-type-and-platform-from-logs branch January 12, 2026 14:34
@gu-prout
Copy link

gu-prout bot commented Jan 12, 2026

Seen on PROD (merged by @JamieB-gu 8 minutes and 34 seconds ago) Please check your changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Departmental tracking: maintenance work, not a fix or a feature Seen-on-PROD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants