관리-도구
편집 파일: consts.cpython-38.pyc
U �MgMH � @ s� d dl Z d dlmZ d dlmZ dZG dd� de�ZG dd� de�Ze�rld dlZd d lm Z d d lm Z d dlmZ d dlmZ d d lm Z d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZmZmZmZmZmZmZmZmZmZmZ ede e e e! e e! e e e e! e e e e e e e e e e! e e! e e e"eeege!f e e! d� dd�Z#dZ$dZ%dZ&dddddgZ'G dd � d �Z(G d!d"� d"�Z)G d#d$� d$�Z*G d%d&� d&�Z+G d'd(� d(�Z,d)d*� Z-e-� Z.[-d+Z/dS ),� N)�Enum)� TYPE_CHECKINGi c @ s e Zd ZdZdZdS )�EndpointTypez� The type of an endpoint. This is an enum, rather than a constant, for historical reasons (the old /store endpoint). The enum also preserve future compatibility, in case we ever have a new endpoint. �envelopeN)�__name__� __module__�__qualname__�__doc__ZENVELOPE� r r �?/opt/hc_python/lib/python3.8/site-packages/sentry_sdk/consts.pyr s r c @ s e Zd ZdZdZdS )�CompressionAlgo�gzip�brN)r r r ZGZIPZBROTLIr r r r r s r )�Optional)�Callable)�Union)�List)�Type)�Dict)�Any)�Sequence)�Tuple)� TypedDict)�BreadcrumbProcessor�ContinuousProfilerMode�Event�EventProcessor�Hint�MeasurementUnit�ProfilerMode� TracesSampler�TransactionProcessor� MetricTags�MetricValue�Experiments) Z max_spansZrecord_sql_paramsZcontinuous_profiling_auto_startZcontinuous_profiling_modeZotel_powered_performanceZ transport_zlib_compression_levelZtransport_compression_levelZtransport_compression_algoZtransport_num_poolsZtransport_http2Zenable_metricsZbefore_emit_metricZmetric_code_locationsF)�total�d z.*�false�no�off�n�0c @ s e Zd ZdZdZdS )�INSTRUMENTERZsentryZotelN)r r r �SENTRYZOTELr r r r r, ] s r, c @ s� e Zd ZdZdZdZdZdZdZdZ dZ d Zd ZdZ dZd ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!dZ"d Z#d!Z$d"Z%d#Z&d$Z'd%Z(d&Z)d'Z*d(Z+d)Z,d*Z-d+Z.d,Z/d-Z0d.Z1d/Z2d0Z3d1Z4d2S )3�SPANDATAz� Additional information describing the type of the span. See: https://develop.sentry.dev/sdk/performance/span-data-conventions/ zai.frequency_penaltyzai.presence_penaltyzai.input_messageszai.model_idzai.metadatazai.tagszai.streamingzai.temperaturezai.top_pzai.top_kzai.function_callz ai.tool_callszai.toolszai.response_formatzai.preamblezai.raw_promptingzai.responseszai.seedzdb.namezdb.userzdb.operationz db.systemzdb.mongodb.collectionz cache.hitzcache.item_sizez cache.keyznetwork.peer.addressznetwork.peer.portz http.queryz http.fragmentzhttp.methodzhttp.response.status_codezmessaging.destination.namezmessaging.message.idzmessaging.message.retry.countz!messaging.message.receive.latencyzmessaging.systemzserver.addresszserver.portzserver.socket.addresszserver.socket.portz code.filepathzcode.linenoz code.functionzcode.namespacez thread.idzthread.nameZprofiler_idN)5r r r r ZAI_FREQUENCY_PENALTYZAI_PRESENCE_PENALTYZAI_INPUT_MESSAGESZAI_MODEL_IDZAI_METADATAZAI_TAGSZAI_STREAMINGZAI_TEMPERATUREZAI_TOP_PZAI_TOP_KZAI_FUNCTION_CALLZ AI_TOOL_CALLSZAI_TOOLSZAI_RESPONSE_FORMATZ AI_LOGIT_BIASZAI_PREAMBLEZAI_RAW_PROMPTINGZAI_RESPONSESZAI_SEEDZDB_NAMEZDB_USERZDB_OPERATIONZ DB_SYSTEMZDB_MONGODB_COLLECTIONZ CACHE_HITZCACHE_ITEM_SIZEZ CACHE_KEYZNETWORK_PEER_ADDRESSZNETWORK_PEER_PORTZ HTTP_QUERYZ HTTP_FRAGMENTZHTTP_METHODZHTTP_STATUS_CODEZMESSAGING_DESTINATION_NAMEZMESSAGING_MESSAGE_IDZMESSAGING_MESSAGE_RETRY_COUNTZ!MESSAGING_MESSAGE_RECEIVE_LATENCYZMESSAGING_SYSTEMZSERVER_ADDRESSZSERVER_PORTZSERVER_SOCKET_ADDRESSZSERVER_SOCKET_PORTZ CODE_FILEPATHZCODE_LINENOZ CODE_FUNCTIONZCODE_NAMESPACEZ THREAD_IDZTHREAD_NAMEZPROFILER_IDr r r r r. b sf r. c @ sT e Zd ZdZdZdZdZdZdZdZ dZ d Zd ZdZ dZd ZdZdZdZdZdZdS )� SPANSTATUSzv The status of a Sentry span. See: https://develop.sentry.dev/sdk/event-payloads/contexts/#trace-context ZabortedZalready_existsZ cancelledZ data_lossZdeadline_exceededZfailed_preconditionZinternal_errorZinvalid_argument� not_found�okZout_of_rangeZpermission_deniedZresource_exhaustedZunauthenticated�unavailableZ unimplementedZ unknown_errorN)r r r r ZABORTEDZALREADY_EXISTSZ CANCELLEDZ DATA_LOSSZDEADLINE_EXCEEDEDZFAILED_PRECONDITION�INTERNAL_ERRORZINVALID_ARGUMENT� NOT_FOUND�OKZOUT_OF_RANGEZPERMISSION_DENIEDZRESOURCE_EXHAUSTEDZUNAUTHENTICATED�UNAVAILABLEZ UNIMPLEMENTED� UNKNOWN_ERRORr r r r r/ � s$ r/ c @ s e Zd ZdZdZdZdZdZdZdZ dZ d Zd ZdZ dZd ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!d Z"d!Z#d"Z$d#Z%d$Z&d%Z'd&Z(d'Z)d(Z*d)Z+d*Z,d+Z-d,Z.d-Z/d.Z0d/Z1d0Z2d1Z3d2Z4d3Z5d4Z6d5Z7d6Z8d7Z9d8Z:d9Z;d:Z<d;Z=d<Z>d=Z?d>S )?�OPzai.messages.create.anthropicz cache.getz cache.putz!ai.chat_completions.create.coherezai.embeddings.create.cohere�dbzdb.rediszevent.django�functionzfunction.awszfunction.gcpzgraphql.executezgraphql.mutationz graphql.parsezgraphql.resolvezgraphql.subscriptionz graphql.queryzgraphql.validatezgrpc.clientzgrpc.serverzhttp.clientzhttp.client.streamzhttp.serverzmiddleware.djangozmiddleware.litestarzmiddleware.litestar.receivezmiddleware.litestar.sendzmiddleware.starlettezmiddleware.starlette.receivezmiddleware.starlette.sendzmiddleware.starlitezmiddleware.starlite.receivezmiddleware.starlite.sendz!ai.chat_completions.create.openaizai.embeddings.create.openaiz*ai.chat_completions.create.huggingface_hubzai.pipeline.langchainzai.run.langchainzai.tool.langchainzai.agent.langchainz$ai.chat_completions.create.langchainz queue.processz queue.publishzqueue.submit.arqzqueue.task.arqzqueue.submit.celeryzqueue.task.celeryz queue.task.rqzqueue.submit.hueyzqueue.task.hueyzqueue.submit.rayzqueue.task.ray� subprocesszsubprocess.waitzsubprocess.communicateztemplate.renderzview.renderzview.response.renderzwebsocket.serverzsocket.connectionz socket.dnsN)@r r r ZANTHROPIC_MESSAGES_CREATEZ CACHE_GETZ CACHE_PUTZCOHERE_CHAT_COMPLETIONS_CREATEZCOHERE_EMBEDDINGS_CREATEZDBZDB_REDISZEVENT_DJANGOZFUNCTIONZFUNCTION_AWSZFUNCTION_GCPZGRAPHQL_EXECUTEZGRAPHQL_MUTATIONZ GRAPHQL_PARSEZGRAPHQL_RESOLVEZGRAPHQL_SUBSCRIPTIONZ GRAPHQL_QUERYZGRAPHQL_VALIDATEZGRPC_CLIENTZGRPC_SERVERZHTTP_CLIENTZHTTP_CLIENT_STREAMZHTTP_SERVERZMIDDLEWARE_DJANGOZMIDDLEWARE_LITESTARZMIDDLEWARE_LITESTAR_RECEIVEZMIDDLEWARE_LITESTAR_SENDZMIDDLEWARE_STARLETTEZMIDDLEWARE_STARLETTE_RECEIVEZMIDDLEWARE_STARLETTE_SENDZMIDDLEWARE_STARLITEZMIDDLEWARE_STARLITE_RECEIVEZMIDDLEWARE_STARLITE_SENDZOPENAI_CHAT_COMPLETIONS_CREATEZOPENAI_EMBEDDINGS_CREATEZ'HUGGINGFACE_HUB_CHAT_COMPLETIONS_CREATEZLANGCHAIN_PIPELINEZ LANGCHAIN_RUNZLANGCHAIN_TOOLZLANGCHAIN_AGENTZ!LANGCHAIN_CHAT_COMPLETIONS_CREATEZ QUEUE_PROCESSZ QUEUE_PUBLISHZQUEUE_SUBMIT_ARQZQUEUE_TASK_ARQZQUEUE_SUBMIT_CELERYZQUEUE_TASK_CELERYZ QUEUE_TASK_RQZQUEUE_SUBMIT_HUEYZQUEUE_TASK_HUEYZQUEUE_SUBMIT_RAYZQUEUE_TASK_RAYZ SUBPROCESSZSUBPROCESS_WAITZSUBPROCESS_COMMUNICATEZTEMPLATE_RENDERZVIEW_RENDERZVIEW_RESPONSE_RENDERZWEBSOCKET_SERVERZSOCKET_CONNECTIONZ SOCKET_DNSr r r r r8 � s| �r8 c 9 @ s� e Zd Zdeddddg g g dddeddddg ddddddddddddddddddi dejdddddegg deddddddddd�7d d �Z dS )�ClientConstructorN� Tg �?FZmediumr&