mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Include request id in statistics to make it to search the logs
This commit is contained in:
parent
5858bf3bec
commit
1d4d274b07
1 changed files with 6 additions and 1 deletions
|
@ -111,7 +111,12 @@ module ActionCable
|
||||||
# Return a basic hash of statistics for the connection keyed with `identifier`, `started_at`, and `subscriptions`.
|
# Return a basic hash of statistics for the connection keyed with `identifier`, `started_at`, and `subscriptions`.
|
||||||
# This can be returned by a health check against the connection.
|
# This can be returned by a health check against the connection.
|
||||||
def statistics
|
def statistics
|
||||||
{ identifier: connection_identifier, started_at: @started_at, subscriptions: subscriptions.identifiers }
|
{
|
||||||
|
identifier: connection_identifier,
|
||||||
|
started_at: @started_at,
|
||||||
|
subscriptions: subscriptions.identifiers,
|
||||||
|
request_id: @env['action_dispatch.request_id']
|
||||||
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
def beat
|
def beat
|
||||||
|
|
Loading…
Reference in a new issue