openlit 1.34.31__py3-none-any.whl → 1.34.33__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- openlit/__init__.py +3 -1
- openlit/instrumentation/ag2/__init__.py +92 -1
- openlit/instrumentation/ag2/ag2.py +425 -4
- openlit/instrumentation/ag2/async_ag2.py +425 -4
- openlit/instrumentation/ag2/utils.py +343 -2
- openlit/instrumentation/pydantic_ai/__init__.py +88 -0
- openlit/instrumentation/pydantic_ai/async_pydantic_ai.py +38 -0
- openlit/instrumentation/pydantic_ai/pydantic_ai.py +99 -10
- openlit/instrumentation/pydantic_ai/utils.py +834 -81
- openlit/semcov/__init__.py +59 -0
- {openlit-1.34.31.dist-info → openlit-1.34.33.dist-info}/METADATA +1 -1
- {openlit-1.34.31.dist-info → openlit-1.34.33.dist-info}/RECORD +14 -13
- {openlit-1.34.31.dist-info → openlit-1.34.33.dist-info}/LICENSE +0 -0
- {openlit-1.34.31.dist-info → openlit-1.34.33.dist-info}/WHEEL +0 -0
openlit/semcov/__init__.py
CHANGED
@@ -80,6 +80,19 @@ class SemanticConvention:
|
|
80
80
|
GEN_AI_OPERATION_TYPE_AGENT = "invoke_agent"
|
81
81
|
GEN_AI_OPERATION_TYPE_CREATE_AGENT = "create_agent"
|
82
82
|
GEN_AI_OPERATION_TYPE_EXECUTE_AGENT_TASK = "execute_task"
|
83
|
+
GEN_AI_OPERATION_TYPE_GRAPH_EXECUTION = "graph_execution"
|
84
|
+
GEN_AI_OPERATION_TYPE_USER_PROMPT_PROCESSING = "user_prompt_processing"
|
85
|
+
GEN_AI_OPERATION_TYPE_MODEL_REQUEST = "model_request"
|
86
|
+
GEN_AI_OPERATION_TYPE_TOOL_COORDINATION = "tool_coordination"
|
87
|
+
|
88
|
+
# Model Request Types
|
89
|
+
GEN_AI_MODEL_REQUEST_TYPE_INITIAL = "initial"
|
90
|
+
GEN_AI_MODEL_REQUEST_TYPE_TOOL_RESPONSE = "tool_response"
|
91
|
+
GEN_AI_MODEL_REQUEST_TYPE_CHAT = "chat"
|
92
|
+
|
93
|
+
# Tool Processing Types
|
94
|
+
GEN_AI_TOOL_PROCESSING_TYPE_EXECUTION = "execution"
|
95
|
+
GEN_AI_TOOL_PROCESSING_TYPE_COORDINATION = "coordination"
|
83
96
|
GEN_AI_OPERATION_TYPE_RETRIEVE = "retrieve"
|
84
97
|
|
85
98
|
# GenAI Output Types (OTel Semconv)
|
@@ -498,3 +511,49 @@ class SemanticConvention:
|
|
498
511
|
# Standard Task Attributes (framework-agnostic)
|
499
512
|
GEN_AI_TASK_DESCRIPTION = "gen_ai.task.description"
|
500
513
|
GEN_AI_TASK_EXPECTED_OUTPUT = "gen_ai.task.expected_output"
|
514
|
+
|
515
|
+
GEN_AI_GROUPCHAT_PARTICIPANTS = "gen_ai.groupchat.participants"
|
516
|
+
GEN_AI_GROUPCHAT_SPEAKER_SELECTION = "gen_ai.groupchat.speaker_selection"
|
517
|
+
GEN_AI_GROUPCHAT_MESSAGE_COUNT = "gen_ai.groupchat.message_count"
|
518
|
+
GEN_AI_GROUPCHAT_TURN_COUNT = "gen_ai.groupchat.turn_count"
|
519
|
+
|
520
|
+
GEN_AI_AGENT_RECIPIENT = "gen_ai.agent.recipient"
|
521
|
+
GEN_AI_AGENT_SENDER = "gen_ai.agent.sender"
|
522
|
+
GEN_AI_AGENT_MESSAGE_TYPE = "gen_ai.agent.message_type"
|
523
|
+
GEN_AI_AGENT_REPLY_MODE = "gen_ai.agent.reply_mode"
|
524
|
+
|
525
|
+
# === ENHANCED SEMANTIC CONVENTIONS FOR COMPREHENSIVE INSTRUMENTATION ===
|
526
|
+
|
527
|
+
# Message structure attributes (reuse existing prompt for input, add output messages)
|
528
|
+
# Note: For input messages, we reuse GEN_AI_CONTENT_PROMPT for consistency
|
529
|
+
GEN_AI_OUTPUT_MESSAGES = "gen_ai.output_messages"
|
530
|
+
GEN_AI_MESSAGE_ROLE = "gen_ai.message.role"
|
531
|
+
GEN_AI_MESSAGE_CONTENT = "gen_ai.message.content"
|
532
|
+
|
533
|
+
# Tool result tracking (extending existing tool attributes)
|
534
|
+
GEN_AI_TOOL_RESULT = "gen_ai.tool.result"
|
535
|
+
GEN_AI_TOOL_SCHEMA = "gen_ai.tool.schema"
|
536
|
+
|
537
|
+
# Model invocation parameters (for comprehensive model tracking)
|
538
|
+
GEN_AI_REQUEST_PARAMETERS = "gen_ai.request.parameters"
|
539
|
+
|
540
|
+
# Session and conversation tracking
|
541
|
+
GEN_AI_SESSION_ID = "gen_ai.session.id"
|
542
|
+
GEN_AI_USER_ID = "gen_ai.user.id"
|
543
|
+
|
544
|
+
# Agent lifecycle phases
|
545
|
+
GEN_AI_AGENT_LIFECYCLE_PHASE = "gen_ai.agent.lifecycle.phase"
|
546
|
+
GEN_AI_AGENT_LIFECYCLE_PHASE_CREATE = "create"
|
547
|
+
GEN_AI_AGENT_LIFECYCLE_PHASE_EXECUTE = "execute"
|
548
|
+
GEN_AI_AGENT_LIFECYCLE_PHASE_GRAPH_EXECUTION = "graph_execution"
|
549
|
+
GEN_AI_AGENT_LIFECYCLE_PHASE_USER_PROMPT_PROCESSING = "user_prompt_processing"
|
550
|
+
GEN_AI_AGENT_LIFECYCLE_PHASE_MODEL_REQUEST = "model_request"
|
551
|
+
GEN_AI_AGENT_LIFECYCLE_PHASE_TOOL_EXECUTION = "tool_execution"
|
552
|
+
|
553
|
+
# Performance metrics (extending existing cost tracking)
|
554
|
+
GEN_AI_PERFORMANCE_TOKENS_PER_SECOND = "gen_ai.performance.tokens_per_second"
|
555
|
+
# Note: For latency/duration, we reuse existing GEN_AI_CLIENT_OPERATION_DURATION
|
556
|
+
|
557
|
+
# Tool execution metadata
|
558
|
+
GEN_AI_TOOL_EXECUTION_DURATION = "gen_ai.tool.execution.duration"
|
559
|
+
GEN_AI_TOOL_EXECUTION_SUCCESS = "gen_ai.tool.execution.success"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: openlit
|
3
|
-
Version: 1.34.
|
3
|
+
Version: 1.34.33
|
4
4
|
Summary: OpenTelemetry-native Auto instrumentation library for monitoring LLM Applications and GPUs, facilitating the integration of observability into your GenAI-driven projects
|
5
5
|
License: Apache-2.0
|
6
6
|
Keywords: OpenTelemetry,otel,otlp,llm,tracing,openai,anthropic,claude,cohere,llm monitoring,observability,monitoring,gpt,Generative AI,chatGPT,gpu
|
@@ -1,5 +1,5 @@
|
|
1
1
|
openlit/__helpers.py,sha256=KovxaOSxiDeVW63IDZ1CtryKE65ij2kjuYTSvCLCypI,20988
|
2
|
-
openlit/__init__.py,sha256=
|
2
|
+
openlit/__init__.py,sha256=0opC1ShHgX7U27JHZC5XEbo2JPwO2jFlUPyAjSLb4Vo,18672
|
3
3
|
openlit/_instrumentors.py,sha256=jqGvYkvMc5WdZdhhHn6BjzEJsZnCxkHkgMpQ7mbRDXE,5746
|
4
4
|
openlit/evals/__init__.py,sha256=nJe99nuLo1b5rf7pt9U9BCdSDedzbVi2Fj96cgl7msM,380
|
5
5
|
openlit/evals/all.py,sha256=X1RXC6A-TVlKvUX-4ZSafiu1B4C_40zzXGqvcb0a0kU,7310
|
@@ -13,10 +13,10 @@ openlit/guard/prompt_injection.py,sha256=MlX4nWqBRfRUCkoIsfv_OMazJnFyKDZJYzMTM1R
|
|
13
13
|
openlit/guard/restrict_topic.py,sha256=ElQ-vJVeGyS2qqsIsWM72nmtRmodVO1BJimXv3vwfU0,6756
|
14
14
|
openlit/guard/sensitive_topic.py,sha256=aaaeEAj6_tcV9wMmGpsFPypDHTbbXrRof7NtWGazuSs,5676
|
15
15
|
openlit/guard/utils.py,sha256=K7A5LIDHM3ctsLYfo-jHuoByMuCPKK1llJDjZBpM8L4,8108
|
16
|
-
openlit/instrumentation/ag2/__init__.py,sha256=
|
17
|
-
openlit/instrumentation/ag2/ag2.py,sha256=
|
18
|
-
openlit/instrumentation/ag2/async_ag2.py,sha256=
|
19
|
-
openlit/instrumentation/ag2/utils.py,sha256=
|
16
|
+
openlit/instrumentation/ag2/__init__.py,sha256=SxxQ3CIpCiVA1G2_nRvd5F7gqCnN5ButIKzrbSUFA30,4617
|
17
|
+
openlit/instrumentation/ag2/ag2.py,sha256=ehRRyVpz7IbMTO1jQqP6rEf5YHLSDbo0lq0r_BhvL0w,17816
|
18
|
+
openlit/instrumentation/ag2/async_ag2.py,sha256=FXnnt38LyNQjv0ha-QbgXSOAjZYN0UKuiYVe8B2Mjfo,18064
|
19
|
+
openlit/instrumentation/ag2/utils.py,sha256=qmbgt0g3_YwcL9pjTrtSc-G3KOobyUMAr30SQ0o2Kd0,17086
|
20
20
|
openlit/instrumentation/ai21/__init__.py,sha256=RyJdKcjcfEkRjECi02M7lApGmEu-OhbIfZwP8XI4oT8,3008
|
21
21
|
openlit/instrumentation/ai21/ai21.py,sha256=prcC0bV6hlET72qQ00uswTGixKVfu-b8B9_EpLhpk_g,6685
|
22
22
|
openlit/instrumentation/ai21/async_ai21.py,sha256=nr_Gaw6BLqredXzq_kcQpxDntYTCYFEnIXouBA3bZGo,6811
|
@@ -131,9 +131,10 @@ openlit/instrumentation/pinecone/utils.py,sha256=6FouF3XlQn4G0VHPv5pxoe9G7u5SLEs
|
|
131
131
|
openlit/instrumentation/premai/__init__.py,sha256=6s6lW4g_E-STrFJA6LoiQg82O_g3D01ddkPA2OX5USk,1971
|
132
132
|
openlit/instrumentation/premai/premai.py,sha256=zCRrl8hoBDKQh9dlB4NbBi6xgi3BBQBx7rWccAb5Nbs,6602
|
133
133
|
openlit/instrumentation/premai/utils.py,sha256=UpYne7CgOXTWoq2kEAxXXELZYW1HumdYxBqd4hBlbNA,12772
|
134
|
-
openlit/instrumentation/pydantic_ai/__init__.py,sha256=
|
135
|
-
openlit/instrumentation/pydantic_ai/
|
136
|
-
openlit/instrumentation/pydantic_ai/
|
134
|
+
openlit/instrumentation/pydantic_ai/__init__.py,sha256=G3ZIewyw1pz0dZoDwO09zKiD_ZHdsdASjh_W6XOsU6g,5311
|
135
|
+
openlit/instrumentation/pydantic_ai/async_pydantic_ai.py,sha256=A-HM_3IjB5j5jIv2U0vyNMPrL4z84MBtLn4YRoSsa3Q,782
|
136
|
+
openlit/instrumentation/pydantic_ai/pydantic_ai.py,sha256=TTA4ou_8ngJ_isIauw9VwMrEYtB4rwVuFm8KB07YCT8,3886
|
137
|
+
openlit/instrumentation/pydantic_ai/utils.py,sha256=FbderCr3ED9S4Qj11Up9HjDZHk0eVM-vsfbdsvAMsR0,29934
|
137
138
|
openlit/instrumentation/qdrant/__init__.py,sha256=qBD9kWikrQozgkcYDPgsladlac5VpvtGBwulYqwQQfI,3293
|
138
139
|
openlit/instrumentation/qdrant/async_qdrant.py,sha256=kj-q9de8JDGZ6Fw5hlWIcly0SxvFD5M2a6K9PHMuejc,2553
|
139
140
|
openlit/instrumentation/qdrant/qdrant.py,sha256=zjaVRpwnvTPJ78mzsM1Dy3Vk-_3rtOI_hKMM9-enWkg,2517
|
@@ -159,8 +160,8 @@ openlit/instrumentation/vllm/vllm.py,sha256=zdzKUkQYmpFlOQ8rObzRiVZEyHOaJFxUagwC
|
|
159
160
|
openlit/otel/events.py,sha256=iOyKIYHA-QYq5bnHVTV_JKeGC5Tsi1icc5nOa3Km_fA,3825
|
160
161
|
openlit/otel/metrics.py,sha256=ipH2NB65yOG7yGB32vqmMQ5HjWSeKAk3q4hzGRXRBOs,7238
|
161
162
|
openlit/otel/tracing.py,sha256=6KZc-Yubq-S7wEPshUiMNFkw8XN5WvrqIovWaq3gsKw,3301
|
162
|
-
openlit/semcov/__init__.py,sha256=
|
163
|
-
openlit-1.34.
|
164
|
-
openlit-1.34.
|
165
|
-
openlit-1.34.
|
166
|
-
openlit-1.34.
|
163
|
+
openlit/semcov/__init__.py,sha256=5uZzmgqaVvxo9Nhdy1mHhY-DoMvpU0JxtFf2huyzlnE,25307
|
164
|
+
openlit-1.34.33.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
165
|
+
openlit-1.34.33.dist-info/METADATA,sha256=ZxLzDhsj6vxtDbWM7Q9WJbt03IfFl_WEWoJqYP9z0yA,23552
|
166
|
+
openlit-1.34.33.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
167
|
+
openlit-1.34.33.dist-info/RECORD,,
|
File without changes
|
File without changes
|