Skip to content

reply_time(latency) field #4

@neopaf

Description

@neopaf

Measure time between request and reply and add it as evaluated field, code:

f.reply_time = ProtoField.relative_time("tarantool.reply_time", "Reply time")

local s,nsfrac = math.modf(request_time - response_time)
local delta = NSTime(s, nsfrac*1e9)
subtree:add(f.reply_time, delta):set_generated() end

neopaf#7

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureA new functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions