All specs 4 total
GenAIMetrics._record_latencyREAL LLM gemma4:latest · · unknownsrc/aumai_otel_genai/models.py
Records a measured latency value by incrementing a counter within a predefined set of exponential buckets stored in the instance's latency_histogram attribute. It accepts a single floating-point number representing the latency in milliseconds as input. The function returns nothing and its side effect is modifying the internal state of the object by updating or appending to the latency_histogram list.
GenAIMetrics._record_latencyREAL LLM gemma4:latest · · unknownsrc/aumai_otel_genai/models.py
Records the provided latency value by incrementing a counter within a predefined set of exponential buckets stored in the instance's latency_histogram attribute. It accepts a single floating-point number representing the latency in milliseconds. The function returns nothing and its primary side-effect is modifying the internal state of the object by updating or adding an entry to the latency_histogram list.
GenAIMetrics._record_latencytemplated static_v1 · O(n^2) · Apache-2.0src/aumai_otel_genai/models.py · L78
Method `GenAIMetrics._record_latency` with 1 parameter(s); returns `None`. Contains 2 loop(s).
GenAIMetrics._record_latencytemplated gemma4 · constant · Apache-2.0src/aumai_otel_genai/models.py · L78
The function updates an internal histogram structure used to track the frequency of measured latency values. It utilizes a predefined, fixed set of exponentially increasing upper bounds, or buckets. Given a floating-point latency measurement, the function determines which bucket range the value falls into. It then increments the counter associated with that specific bucket within the internal state. If the bucket is encountered for the first time, it initializes the count to one.