You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: instrumentation-genai/opentelemetry-instrumentation-openai-v2/src/opentelemetry/instrumentation/openai_v2/patch.py
+10-11Lines changed: 10 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -291,22 +291,21 @@ def _record_metrics(
291
291
instruments: Instruments,
292
292
duration: float,
293
293
result,
294
-
span_attributes: dict,
294
+
request_attributes: dict,
295
295
error_type: Optional[str],
296
296
operation_name: str,
297
297
):
298
-
"""Generalized function to record metrics for both chat and embeddings operations."""
0 commit comments