Skip to content

Commit f70b145

Browse files
committed
Add start_time to request_context in API class
1 parent 364f3a6 commit f70b145

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/hooks/app/api.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ def self.create(config:, endpoints:, log:)
5454
request_context = {
5555
request_id:,
5656
path: full_path,
57-
handler: handler_class_name
57+
handler: handler_class_name,
58+
start_time: Time.now,
5859
}
5960

6061
Core::LogContext.with(request_context) do

0 commit comments

Comments
 (0)