File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
util/opentelemetry-util-genai/src/opentelemetry/util/genai Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 4040from opentelemetry import trace
4141from opentelemetry ._logs import Logger , LogRecord
4242from opentelemetry .context import Context , get_current
43- from opentelemetry .metrics import Meter , get_meter
43+ from opentelemetry .metrics import Histogram , Meter , get_meter
4444from opentelemetry .semconv ._incubating .attributes import (
4545 gen_ai_attributes as GenAI ,
4646)
@@ -266,7 +266,7 @@ def _set_chat_generation_attrs(
266266
267267
268268def _record_token_metrics (
269- token_histogram ,
269+ token_histogram : Histogram ,
270270 prompt_tokens : Optional [AttributeValue ],
271271 completion_tokens : Optional [AttributeValue ],
272272 metric_attributes : Dict [str , AttributeValue ],
@@ -287,7 +287,7 @@ def _record_token_metrics(
287287
288288
289289def _record_duration (
290- duration_histogram ,
290+ duration_histogram : Histogram ,
291291 invocation : LLMInvocation ,
292292 metric_attributes : Dict [str , AttributeValue ],
293293) -> None :
You can’t perform that action at this time.
0 commit comments