OpenViking icon indicating copy to clipboard operation
OpenViking copied to clipboard

[Bug]: observability subscriber metrics failed for event retrieval.completed

Open suqinghen opened this issue 5 months ago • 0 comments

Bug Description

2026-07-01 10:24:25,475 - openviking.observability.events - WARNING - [7c4b693598f671b724f7c41ffdb0f517] observability subscriber metrics failed for event retrieval.completed: counter can only be increased by a positive amount

Steps to Reproduce

  1. in metrics/collectors/retrieval.py, if result_count=0, registry.inc_counter(..., amount=0)
        if amount <= 0:
            raise ValueError("counter can only be increased by a positive amount")

Expected Behavior

No warning should be reported

Actual Behavior

A warning log: 2026-07-01 10:24:25,475 - openviking.observability.events - WARNING - [7c4b693598f671b724f7c41ffdb0f517] observability subscriber metrics failed for event retrieval.completed: counter can only be increased by a positive amount

Minimal Reproducible Example


Error Logs

2026-07-01 10:24:25,475 - openviking.observability.events - WARNING - [7c4b693598f671b724f7c41ffdb0f517] observability subscriber metrics failed for event retrieval.completed: counter can only be increased by a positive amount

OpenViking Version

0.4.5

Python Version

3.11.14

Operating System

macOS

Model Backend

None

Additional Context

No response

suqinghen avatar Jul 01 '26 07:07 suqinghen