
    g                        U d dl mZmZmZmZmZmZmZ d dlm	Z	m
Z
mZmZmZ eee	gee   f   eee   e	df   f   ZdZeed<   	 de
defdZd	Zeed
<   	 de
deee      defdZdZeed<   	 de
deee      defdZdZeed<   	 de
deee      defdZdZeed<   	 de
defdZdZeed<   	 de
deee      defdZdZeed<   	 de
deee      defdZdZeed<   	 de
deee      defdZdZ eed <   	 de
defd!Z!y)"    )CallableFinal	GeneratorIterableOptionalSequenceUnion)CallbackOptionsMeterObservableGaugeObservationUpDownCounterNzvcs.change.countVCS_CHANGE_COUNTmeterreturnc                 2    | j                  t        d d      S )zThe number of changes (pull requests/merge requests/changelists) in a repository, categorized by their state (e.g. open or merged)z{change}namedescriptionunit)create_up_down_counterr   r   s    j/var/www/openai/venv/lib/python3.12/site-packages/opentelemetry/semconv/_incubating/metrics/vcs_metrics.pycreate_vcs_change_countr   0   s&    '' Y (      zvcs.change.durationVCS_CHANGE_DURATION	callbacksc                 4    | j                  t        |dd      S )z\The time duration a change (pull request/merge request/changelist) has been in a given statez]The time duration a change (pull request/merge request/changelist) has been in a given state.sr   r   r   r   )create_observable_gauger   r   r   s     r   create_vcs_change_durationr#   A   s(     (( s	 )  r   zvcs.change.time_to_approvalVCS_CHANGE_TIME_TO_APPROVALc                 4    | j                  t        |d d      S )zxThe amount of time since its creation it took a change (pull request/merge request/changelist) to get the first approvalr   r    )r!   r$   r"   s     r   "create_vcs_change_time_to_approvalr&   U   s+     ((( O	 )  r   zvcs.contributor.countVCS_CONTRIBUTOR_COUNTc                 4    | j                  t        |d d      S )z1The number of unique contributors to a repositoryz{contributor}r    )r!   r'   r"   s     r   create_vcs_contributor_countr)   i   s(     (("G	 )  r   zvcs.ref.countVCS_REF_COUNTc                 2    | j                  t        d d      S )z8The number of refs of type branch or tag in a repositoryz{ref}r   )r   r*   r   s    r   create_vcs_ref_countr,   }   s#    ''N (  r   zvcs.ref.lines_deltaVCS_REF_LINES_DELTAc                 4    | j                  t        |d d      S )znThe number of lines added/removed in a ref (branch) relative to the ref from the `vcs.ref.base.name` attributez{line}r    )r!   r-   r"   s     r   create_vcs_ref_lines_deltar/      s+     ((  E	 )  r   zvcs.ref.revisions_deltaVCS_REF_REVISIONS_DELTAc                 4    | j                  t        |d d      S )zrThe number of revisions (commits) a ref (branch) is ahead/behind the branch from the `vcs.ref.base.name` attributez
{revision}r    )r!   r0   r"   s     r   create_vcs_ref_revisions_deltar2      s+     (($ I	 )  r   zvcs.ref.timeVCS_REF_TIMEc                 4    | j                  t        |d d      S )zyTime a ref (branch) created from the default branch (trunk) has existed. The `ref.type` attribute will always be `branch`r   r    )r!   r3   r"   s     r   create_vcs_ref_timer5      s+     (( P	 )  r   zvcs.repository.countVCS_REPOSITORY_COUNTc                 2    | j                  t        d d      S )z-The number of repositories in an organizationz{repository}r   )r   r6   r   s    r   create_vcs_repository_countr8      s#    ''!C (  r   )"typingr   r   r   r   r   r   r	   opentelemetry.metricsr
   r   r   r   r   	CallbackTr   __annotations__r   r   r#   r$   r&   r'   r)   r*   r,   r-   r/   r0   r2   r3   r5   r6   r8    r   r   <module>r>      s       o 556h{#_d:;=	
 - % ,5 ]  3 U 2		%hy&9:		 &C U B		%hy&9:		  7 u 6		%hy&9:		 'u & -  3 U 2		%hy&9:		 ";  :		%hy&9:		 %e $		%hy&9:		 5 e 4u  r   