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
This library allows tracing LLM requests and logging of messages made by the
10
-
`OpenAI Python API library <https://pypi.org/project/openai/>`_.
10
+
`OpenAI Python API library <https://pypi.org/project/openai/>`_. It also captures
11
+
the duration of the operations and the number of tokens used as metrics.
11
12
12
13
13
14
Installation
@@ -74,6 +75,48 @@ To uninstrument clients, call the uninstrument method:
74
75
# Uninstrument all clients
75
76
OpenAIInstrumentor().uninstrument()
76
77
78
+
Bucket Boundaries
79
+
-----------------
80
+
81
+
This section describes the explicit bucket boundaries for metrics such as token usage and operation duration, and guides users to create Views to implement them according to the semantic conventions.
Copy file name to clipboardExpand all lines: instrumentation-genai/opentelemetry-instrumentation-openai-v2/src/opentelemetry/instrumentation/openai_v2/__init__.py
Copy file name to clipboardExpand all lines: instrumentation-genai/opentelemetry-instrumentation-openai-v2/src/opentelemetry/instrumentation/openai_v2/patch.py
0 commit comments