Compare observed latency with the service target.

latency-budget-report Latency reports can show the observed value, target, and final status together.

Latency Budget Reliability Report

observed_ms
latency_budget_reliability_report.rb
Replay: real traced execution (multi-file project)
observed_ms = 180
target_ms = 200
status = "watch"

if observed_ms <= 150
  status = "fast"
end

if observed_ms > target_ms
  status = "slow"
end

puts "observed=#{observed_ms}"
puts "target=#{target_ms}"
puts "status=#{status}"
observed_ms = 120
target_ms = 200
status = "watch"

if observed_ms <= 150
  status = "fast"
end

if observed_ms > target_ms
  status = "slow"
end

puts "observed=#{observed_ms}"
puts "target=#{target_ms}"
puts "status=#{status}"
observed_ms = 260
target_ms = 200
status = "watch"

if observed_ms <= 150
  status = "fast"
end

if observed_ms > target_ms
  status = "slow"
end

puts "observed=#{observed_ms}"
puts "target=#{target_ms}"
puts "status=#{status}"
  1. observed_ms ← 180, target_ms ← 200, status ← watch

    1observed_ms→ 180 = 180 #@observed_ms=120, 2602target_ms→ 200 = 2003status→ watch = "watch"45if observed_ms <= 1506  status = "fast"7end89if observed_ms > target_ms10  status = "slow"11end1213puts "observed=#{observed_ms180}"14puts "target=#{target_ms200}"15puts "status=#{statuswatch}"
    outputobserved=180
    target=200
    status=watch
  1. observed_ms ← 120, target_ms ← 200, status ← watch

    1observed_ms→ 120 = 1202target_ms→ 200 = 2003status→ watch = "watch"
  2. status ← fast

    5if observed_ms120 <= 1506  status→ fast = "fast"7end
  3. puts "observed=#{observed_ms}"

    13puts "observed=#{observed_ms120}"14puts "target=#{target_ms200}"15puts "status=#{statusfast}"
    outputobserved=120
    target=200
    status=fast
  1. observed_ms ← 260, target_ms ← 200, status ← watch

    1observed_ms→ 260 = 2602target_ms→ 200 = 2003status→ watch = "watch"
  2. status ← slow

    9if observed_ms260 > target_ms20010  status→ slow = "slow"11end
  3. puts "observed=#{observed_ms}"

    13puts "observed=#{observed_ms260}"14puts "target=#{target_ms200}"15puts "status=#{statusslow}"
    outputobserved=260
    target=200
    status=slow