o
    pi                     @   s   U d dl mZ d dlmZmZ dZeed< 	 dedefddZd	Zeed
< 	 dedefddZ	dZ
eed< 	 dedefddZdZeed< 	 dedefddZdS )    )Final)	HistogramMeterzmcp.client.operation.durationMCP_CLIENT_OPERATION_DURATIONmeterreturnc                 C      | j tdddS )zThe duration of the MCP request or notification as observed on the sender from the time it was sent until the response or ack is receivedzThe duration of the MCP request or notification as observed on the sender from the time it was sent until the response or ack is received.snamedescriptionunit)create_histogramr   r    r   i/home/ubuntu/.local/lib/python3.10/site-packages/opentelemetry/semconv/_incubating/metrics/mcp_metrics.py$create_mcp_client_operation_duration   
   r   zmcp.client.session.durationMCP_CLIENT_SESSION_DURATIONc                 C   r   )z=The duration of the MCP session as observed on the MCP clientz>The duration of the MCP session as observed on the MCP client.r	   r
   )r   r   r   r   r   r   "create_mcp_client_session_duration-   r   r   zmcp.server.operation.durationMCP_SERVER_OPERATION_DURATIONc                 C   r   )z~MCP request or notification duration as observed on the receiver from the time it was received until the result or ack is sentzMCP request or notification duration as observed on the receiver from the time it was received until the result or ack is sent.r	   r
   )r   r   r   r   r   r   $create_mcp_server_operation_duration>   r   r   zmcp.server.session.durationMCP_SERVER_SESSION_DURATIONc                 C   r   )z=The duration of the MCP session as observed on the MCP serverz>The duration of the MCP session as observed on the MCP server.r	   r
   )r   r   r   r   r   r   "create_mcp_server_session_durationO   r   r   N)typingr   opentelemetry.metricsr   r   r   __annotations__r   r   r   r   r   r   r   r   r   r   r   <module>   s   			