Skip to content

chore: added duration field in logging middleware so that we can query with it in datadog#178

Merged
jasonMcCullough merged 1 commit intomasterfrom
add-duration-field-in-addLoggingMiddleware
Mar 9, 2026
Merged

chore: added duration field in logging middleware so that we can query with it in datadog#178
jasonMcCullough merged 1 commit intomasterfrom
add-duration-field-in-addLoggingMiddleware

Conversation

@jasonMcCullough
Copy link
Collaborator

Summary

  • We already calculate duration (milliseconds from request start to response finish) but only use it in the log message string as (${duration}ms).
  • The goal is to expose request latency as a first-class structured field on every request log.

Changes

  • This change emits duration as a structured field within addLoggingMiddleware so that it can be easily queried with or aggregated on.

@jasonMcCullough jasonMcCullough requested a review from field123 March 9, 2026 14:54
@jasonMcCullough jasonMcCullough merged commit 1a5a2b9 into master Mar 9, 2026
4 checks passed
@jasonMcCullough jasonMcCullough deleted the add-duration-field-in-addLoggingMiddleware branch March 9, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants