Viewing File: /opt/hc_python/lib/python3.12/site-packages/sentry_sdk/__pycache__/consts.cpython-312.pyc

�

_�*j��
���ddlZddlmZddlmZdZdZdZGd�de�ZGd�d	e�Z	er�dd
lm
Z
mZmZm
Z
mZmZmZmZmZmZddlmZmZddlZddlmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$ed
idee%�dee%�dee&�dee&�dee�dee&�dee%�dee%�dee	�dee%�dee&�dee&�dee&�deeeegeef�dee&�deee egee f�deed�eeeee"egee"fee&d ��d�!�Z'dZ(dZ)d"Z*gd#�Z+Gd$�d%e,e�Z-Gd&�d'�Z.Gd(�d)�Z/Gd*�d+�Z0Gd,�d-�Z1Gd.�d/�Z2Gd0�d1�Z3d4d2�Z4e4�Z5[4d3Z6y)5�N)�Enum)�
TYPE_CHECKING�dFc��eZdZdZdZdZy)�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.
    �envelopezintegration/otlp/v1/tracesN)�__name__�
__module__�__qualname__�__doc__�ENVELOPE�OTLP_TRACES���@/opt/hc_python/lib/python3.12/site-packages/sentry_sdk/consts.pyrrs����H�.�Krrc��eZdZdZdZy)�CompressionAlgo�gzip�brN)r	r
r�GZIP�BROTLIrrrrrs���D�
�Frr)
�AbstractSet�Any�Callable�Dict�List�Optional�Sequence�Tuple�Type�Union)�Literal�	TypedDict)�BreadcrumbProcessor�ContinuousProfilerMode�Event�EventProcessor�Hint�IgnoreSpansConfig�Log�Metric�ProfilerMode�SpanJSON�
TracesSampler�TransactionProcessor�Experiments�	max_spans�	max_flags�record_sql_params�continuous_profiling_auto_start�continuous_profiling_mode�otel_powered_performance� transport_zlib_compression_level�transport_compression_level�transport_compression_algo�transport_num_pools�transport_http2�transport_async�enable_logs�before_send_log�enable_metrics�before_send_metric�trace_lifecycle)�static�stream)�ignore_spans�before_send_span� suppress_asgi_chained_exceptions)�totalz.*)�false�no�off�n�0c�(�eZdZdZdZdZdZdefd�Zy)�SPANTEMPLATE�default�ai_agent�ai_tool�ai_chat�returnc��|jS�N)�value)�selfs r�__str__zSPANTEMPLATE.__str__ps���z�z�rN)	r	r
r�DEFAULT�AI_AGENT�AI_TOOL�AI_CHAT�strrXrrrrNrNjs"���G��H��G��G���rrNc��eZdZdZdZy)�INSTRUMENTER�sentry�otelN)r	r
r�SENTRY�OTELrrrr_r_ts��
�F��Drr_c��eZdZdZdZy)�SPANNAME�COMMIT�ROLLBACKN)r	r
r�	DB_COMMIT�DB_ROLLBACKrrrrereys���I��Krrec�t�eZdZdZdZ	dZ	dZ	dZ	dZ	dZ		dZ
	d	Z	d
Z	dZ
	dZ	d
Z	dZ	dZ	dZ	dZ	dZ	dZ	dZ	dZ	dZ	dZ	dZ	dZ	dZ	dZ	dZ	dZ	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-Z/	d.Z0	d/Z1	d0Z2	d1Z3	d2Z4	d3Z5	d4Z6	d5Z7	d6Z8	d7Z9	d8Z:	d9Z;	d:Z<	d;Z=	d<Z>	d=Z?	d>Z@	d?ZA	d@ZB	dAZC	dBZD	dCZE	dDZF	dEZG	dFZH	dGZI	dHZJ	dIZK	dJZL	dKZM	dLZN	dMZO	dNZP	dOZQ	dPZR	dQZS	dRZT	dSZU	dTZV	dUZW	dVZX	dWZY	dXZZ	dYZ[	dZZ\	d[Z]	d\Z^	d]Z_	d^Z`	d_Za	d`Zb	daZc	dbZd	dcZe	ddZf	deZg	dfZh	dgZi	dhZj	diZk	djZl	dkZm	dlZn	dmZo	dnZp	doZq	dpZr	dqZs	drZt	dsZu	dtZv	duZw	dvZx	dwZy	dxZz	dyZ{	dzZ|	d{Z}	d|Z~	d}Z	d~Z�	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�Z�	d�Z�	d�Z�	d�Z�	d�Z�y�)��SPANDATAz�
    Additional information describing the type of the span.
    See: https://develop.sentry.dev/sdk/performance/span-data-conventions/
    zai.citationszai.documentszai.finish_reasonzai.frequency_penaltyzai.function_callzai.generation_idzai.input_messagesz
ai.logit_biaszai.metadatazai.model_idzai.pipeline.namezai.preamblezai.presence_penaltyzai.raw_promptingzai.response_formatzai.responseszai.search_querieszai.is_search_requiredzai.search_resultszai.seedzai.streamingzai.tagszai.temperaturezai.textszai.top_kzai.top_pz
ai.tool_callszai.toolszai.warningsz	cache.hitzcache.item_sizez	cache.keyzclient.addressz
code.filepathzcode.file.pathz
code.functionzcode.function.namezcode.linenozcode.line.numberzcode.namespacezdb.mongodb.collectionzdb.namezdb.namespacezdb.driver.namezdb.operationzdb.operation.namez	db.systemzdb.system.namezdb.userzgen_ai.agent.namezgen_ai.conversation.idz
gen_ai.choicezgen_ai.embeddings.inputzgen_ai.function_idzgen_ai.operation.namezgen_ai.pipeline.namezgen_ai.response.finish_reasonszgen_ai.response.idzgen_ai.response.modelzgen_ai.response.streamingzgen_ai.response.textzgen_ai.output.messagesz#gen_ai.response.time_to_first_tokenzgen_ai.response.tool_callszgen_ai.request.available_toolszgen_ai.tool.definitionsz gen_ai.request.frequency_penaltyzgen_ai.request.max_tokenszgen_ai.system_instructionszgen_ai.request.messageszgen_ai.input.messageszgen_ai.request.modelzgen_ai.request.presence_penaltyzgen_ai.request.seedzgen_ai.request.temperaturezgen_ai.request.top_kzgen_ai.request.top_pz
gen_ai.systemzgen_ai.provider.namezgen_ai.tool.descriptionzgen_ai.tool.inputzgen_ai.tool.call.argumentszgen_ai.tool.namezgen_ai.tool.outputzgen_ai.tool.call.resultzgen_ai.usage.input_tokensz gen_ai.usage.input_tokens.cachedz%gen_ai.usage.input_tokens.cache_writezgen_ai.usage.output_tokensz$gen_ai.usage.output_tokens.reasoningzgen_ai.usage.total_tokenszgen_ai.user.messagez
http.fragmentzhttp.methodzhttp.request.headerzhttp.request.methodzhttp.request.body.dataz
http.queryzhttp.response.status_codezmessaging.destination.namezmessaging.message.idz!messaging.message.receive.latencyzmessaging.message.retry.countzmessaging.systemzmiddleware.nameznetwork.protocol.nameznetwork.peer.addressznetwork.peer.portznetwork.transportzprocess.pidzprocess.command_args�profiler_idz
rpc.methodzrpc.response.status_codezserver.addresszserver.portzserver.socket.addresszserver.socket.portz	thread.idzthread.namezuser.ip_addresszurl.fullzurl.fragmentz	url.queryz
mcp.tool.namezmcp.prompt.namezmcp.resource.urizmcp.method.namezmcp.request.idzmcp.tool.result.contentzmcp.tool.result.content_countzmcp.tool.result.is_errorz!mcp.prompt.result.message_contentzmcp.prompt.result.message_rolezmcp.prompt.result.message_countzmcp.resource.protocolz
mcp.transportzmcp.session.idzsentry.distzsentry.environmentzsentry.releasezsentry.platformzsentry.sdk.namezsentry.sdk.versionzsentry.sdk.integrationsN)�r	r
rr�AI_CITATIONS�AI_DOCUMENTS�AI_FINISH_REASON�AI_FREQUENCY_PENALTY�AI_FUNCTION_CALL�AI_GENERATION_ID�AI_INPUT_MESSAGES�
AI_LOGIT_BIAS�AI_METADATA�AI_MODEL_ID�AI_PIPELINE_NAME�AI_PREAMBLE�AI_PRESENCE_PENALTY�AI_RAW_PROMPTING�AI_RESPONSE_FORMAT�AI_RESPONSES�AI_SEARCH_QUERIES�AI_SEARCH_REQUIRED�AI_SEARCH_RESULTS�AI_SEED�AI_STREAMING�AI_TAGS�AI_TEMPERATURE�AI_TEXTS�AI_TOP_K�AI_TOP_P�
AI_TOOL_CALLS�AI_TOOLS�AI_WARNINGS�	CACHE_HIT�CACHE_ITEM_SIZE�	CACHE_KEY�CLIENT_ADDRESS�
CODE_FILEPATH�CODE_FILE_PATH�
CODE_FUNCTION�CODE_FUNCTION_NAME�CODE_LINENO�CODE_LINE_NUMBER�CODE_NAMESPACE�DB_MONGODB_COLLECTION�DB_NAME�DB_NAMESPACE�DB_DRIVER_NAME�DB_OPERATION�DB_OPERATION_NAME�	DB_SYSTEM�DB_SYSTEM_NAME�DB_USER�GEN_AI_AGENT_NAME�GEN_AI_CONVERSATION_ID�
GEN_AI_CHOICE�GEN_AI_EMBEDDINGS_INPUT�GEN_AI_FUNCTION_ID�GEN_AI_OPERATION_NAME�GEN_AI_PIPELINE_NAME�GEN_AI_RESPONSE_FINISH_REASONS�GEN_AI_RESPONSE_ID�GEN_AI_RESPONSE_MODEL�GEN_AI_RESPONSE_STREAMING�GEN_AI_RESPONSE_TEXT�GEN_AI_OUTPUT_MESSAGES�#GEN_AI_RESPONSE_TIME_TO_FIRST_TOKEN�GEN_AI_RESPONSE_TOOL_CALLS�GEN_AI_REQUEST_AVAILABLE_TOOLS�GEN_AI_TOOL_DEFINITIONS� GEN_AI_REQUEST_FREQUENCY_PENALTY�GEN_AI_REQUEST_MAX_TOKENS�GEN_AI_SYSTEM_INSTRUCTIONS�GEN_AI_REQUEST_MESSAGES�GEN_AI_INPUT_MESSAGES�GEN_AI_REQUEST_MODEL�GEN_AI_REQUEST_PRESENCE_PENALTY�GEN_AI_REQUEST_SEED�GEN_AI_REQUEST_TEMPERATURE�GEN_AI_REQUEST_TOP_K�GEN_AI_REQUEST_TOP_P�
GEN_AI_SYSTEM�GEN_AI_PROVIDER_NAME�GEN_AI_TOOL_DESCRIPTION�GEN_AI_TOOL_INPUT�GEN_AI_TOOL_CALL_ARGUMENTS�GEN_AI_TOOL_NAME�GEN_AI_TOOL_OUTPUT�GEN_AI_TOOL_CALL_RESULT�GEN_AI_USAGE_INPUT_TOKENS� GEN_AI_USAGE_INPUT_TOKENS_CACHED�%GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE�GEN_AI_USAGE_OUTPUT_TOKENS�$GEN_AI_USAGE_OUTPUT_TOKENS_REASONING�GEN_AI_USAGE_TOTAL_TOKENS�GEN_AI_USER_MESSAGE�
HTTP_FRAGMENT�HTTP_METHOD�HTTP_REQUEST_HEADER�HTTP_REQUEST_METHOD�HTTP_REQUEST_BODY_DATA�
HTTP_QUERY�HTTP_STATUS_CODE�MESSAGING_DESTINATION_NAME�MESSAGING_MESSAGE_ID�!MESSAGING_MESSAGE_RECEIVE_LATENCY�MESSAGING_MESSAGE_RETRY_COUNT�MESSAGING_SYSTEM�MIDDLEWARE_NAME�NETWORK_PROTOCOL_NAME�NETWORK_PEER_ADDRESS�NETWORK_PEER_PORT�NETWORK_TRANSPORT�PROCESS_PID�PROCESS_COMMAND_ARGS�PROFILER_ID�
RPC_METHOD�RPC_RESPONSE_STATUS_CODE�SERVER_ADDRESS�SERVER_PORT�SERVER_SOCKET_ADDRESS�SERVER_SOCKET_PORT�	THREAD_ID�THREAD_NAME�USER_IP_ADDRESS�URL_FULL�URL_FRAGMENT�	URL_QUERY�
MCP_TOOL_NAME�MCP_PROMPT_NAME�MCP_RESOURCE_URI�MCP_METHOD_NAME�MCP_REQUEST_ID�MCP_TOOL_RESULT_CONTENT�MCP_TOOL_RESULT_CONTENT_COUNT�MCP_TOOL_RESULT_IS_ERROR�!MCP_PROMPT_RESULT_MESSAGE_CONTENT�MCP_PROMPT_RESULT_MESSAGE_ROLE�MCP_PROMPT_RESULT_MESSAGE_COUNT�MCP_RESOURCE_PROTOCOL�
MCP_TRANSPORT�MCP_SESSION_ID�SENTRY_DIST�SENTRY_ENVIRONMENT�SENTRY_RELEASE�SENTRY_PLATFORM�SENTRY_SDK_NAME�SENTRY_SDK_VERSION�SENTRY_SDK_INTEGRATIONSrrrrkrk~s6���
"�L��"�L��*���2���*���*���,���$�M�� �K�� �K��*��� �K��0���*���.���"�L��,���1���,����G��"�L���G��&�N���H���H���H��$�M���H�� �K���I��
(�O��
�I��
&�N��
$�M��&�N��
$�M��.���
 �K��*���
&�N��4����G��"�L��
&�N��
"�L��,���
�I��&�N��
�G��,���
6���
$�M��
8���
.���
4���
2���
&F�"��
.���
4���
!<���
2���6���
+P�'��
">���&F�"��8���
(J�$��
!<���
">���
8���4���
2���
'H�#��
0���
">���
2���
2���
$�M��2���
8���
,���">���
*���
.���8���
!<���
(J�$��
-T�)��
">���
,R�(��
!<���
0���
$�M��
 �K��0���0���
6���
�J��
3���
">���
2���)L�%��%D�!��*���(�O��4���
2���
,���
,���
 �K��
2���
 �K��
�J��
 :���
&�N��
 �K��
4���
.����I��
 �K��
(�O��
�H��
"�L��
�I��
$�M��
(�O��
*���
(�O��
&�N��
8���
%D�!��
 :���
)L�%��
&F�"��
'H�#��
4���
$�M��
&�N��
 �K��
.���
&�N��
(�O��
(�O��
.���
8��rrkc�T�eZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZdZdZy)�
SPANSTATUSzv
    The status of a Sentry span.

    See: https://develop.sentry.dev/sdk/event-payloads/contexts/#trace-context
    �aborted�already_exists�	cancelled�	data_loss�deadline_exceeded�failed_precondition�internal_error�invalid_argument�	not_found�ok�out_of_range�permission_denied�resource_exhausted�unauthenticated�unavailable�
unimplemented�
unknown_errorN)r	r
rr�ABORTED�ALREADY_EXISTS�	CANCELLED�	DATA_LOSS�DEADLINE_EXCEEDED�FAILED_PRECONDITION�INTERNAL_ERROR�INVALID_ARGUMENT�	NOT_FOUND�OK�OUT_OF_RANGE�PERMISSION_DENIED�RESOURCE_EXHAUSTED�UNAUTHENTICATED�UNAVAILABLE�
UNIMPLEMENTED�
UNKNOWN_ERRORrrrr�r�lsc����G�%�N��I��I�+��/��%�N�)���I�	
�B�!�L�+��-��'�O��K�#�M�#�Mrr�c��eZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
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>Z@d?ZAd@ZBdAZCyB)C�OPzai.messages.create.anthropicz	cache.getz	cache.putz!ai.chat_completions.create.coherezai.embeddings.create.cohere�dbzdb.rediszevent.django�functionzfunction.awszfunction.gcpzgen_ai.chatzgen_ai.create_agentzgen_ai.embeddingszgen_ai.execute_toolzgen_ai.text_completionzgen_ai.handoffzgen_ai.invoke_agentzgen_ai.responseszgraphql.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.huggingface_hubz
queue.processz
queue.publishzqueue.submit.arqzqueue.task.arqzqueue.submit.celeryzqueue.task.celeryz
queue.task.rqzqueue.submit.hueyzqueue.task.hueyzqueue.submit.rayzqueue.task.rayzqueue.task.dramatiqzqueue.submit.django�
subprocesszsubprocess.waitzsubprocess.communicateztemplate.renderzview.renderzview.response.renderzwebsocket.serverzsocket.connectionz
socket.dnsz
mcp.serverN)Dr	r
r�ANTHROPIC_MESSAGES_CREATE�	CACHE_GET�	CACHE_PUT�COHERE_CHAT_COMPLETIONS_CREATE�COHERE_EMBEDDINGS_CREATE�DB�DB_REDIS�EVENT_DJANGO�FUNCTION�FUNCTION_AWS�FUNCTION_GCP�GEN_AI_CHAT�GEN_AI_CREATE_AGENT�GEN_AI_EMBEDDINGS�GEN_AI_EXECUTE_TOOL�GEN_AI_TEXT_COMPLETION�GEN_AI_HANDOFF�GEN_AI_INVOKE_AGENT�GEN_AI_RESPONSES�GRAPHQL_EXECUTE�GRAPHQL_MUTATION�
GRAPHQL_PARSE�GRAPHQL_RESOLVE�GRAPHQL_SUBSCRIPTION�
GRAPHQL_QUERY�GRAPHQL_VALIDATE�GRPC_CLIENT�GRPC_SERVER�HTTP_CLIENT�HTTP_CLIENT_STREAM�HTTP_SERVER�MIDDLEWARE_DJANGO�MIDDLEWARE_LITESTAR�MIDDLEWARE_LITESTAR_RECEIVE�MIDDLEWARE_LITESTAR_SEND�MIDDLEWARE_STARLETTE�MIDDLEWARE_STARLETTE_RECEIVE�MIDDLEWARE_STARLETTE_SEND�MIDDLEWARE_STARLITE�MIDDLEWARE_STARLITE_RECEIVE�MIDDLEWARE_STARLITE_SEND�'HUGGINGFACE_HUB_CHAT_COMPLETIONS_CREATE�
QUEUE_PROCESS�
QUEUE_PUBLISH�QUEUE_SUBMIT_ARQ�QUEUE_TASK_ARQ�QUEUE_SUBMIT_CELERY�QUEUE_TASK_CELERY�
QUEUE_TASK_RQ�QUEUE_SUBMIT_HUEY�QUEUE_TASK_HUEY�QUEUE_SUBMIT_RAY�QUEUE_TASK_RAY�QUEUE_TASK_DRAMATIQ�QUEUE_SUBMIT_DJANGO�
SUBPROCESS�SUBPROCESS_WAIT�SUBPROCESS_COMMUNICATE�TEMPLATE_RENDER�VIEW_RENDER�VIEW_RESPONSE_RENDER�WEBSOCKET_SERVER�SOCKET_CONNECTION�
SOCKET_DNS�
MCP_SERVERrrrr#r#�sn�� >���I��I�%H�"�<��	
�B��H�!�L��H�!�L�!�L��K�/��+��/��5��%�N�/��)��'�O�)��#�M�'�O�1��#�M�)���K��K��K�-���K�+��/��"?��9��1��#A� � ;��/��"?��9��4�,�$�M�#�M�)��%�N�/��+��#�M�+��'�O�)��%�N�/��/���J�'�O�5��'�O��K�1��)��+���J��Jrr#c����eZdZ	dmeddddgggdddeddddgddddddddddddddddddddidejdddddeggdedddddddddde	e
dde�dddddd	�Ed
dded
dddddde
dddddddedddddede
ddddddd d!d"ed#d$d%dd&d'd(d)d*dd+ed,dd-ed.d/d0d1d2d/d3d1d4d5d6d7d8d/d9ed:d;d<ed=ed>d?d@dAdBddCdDdEddFddGddHddIdJdKdLdMdNdOdPdQedRdSdTedUedVedWedXdYdZdd[dd\d]d^ed_dPd`edadbdcdddeedfdgdhddiedjedkdf�dl�Zy)n�ClientConstructorN�Tg�?�mediumF�manualr)E�max_breadcrumbs�release�environment�server_name�shutdown_timeout�integrations�in_app_include�in_app_exclude�default_integrations�dist�	transport�transport_queue_size�sample_rate�send_default_pii�
http_proxy�https_proxy�
ignore_errors�max_request_body_size�socket_options�
keep_alive�before_send�before_breadcrumb�debug�attach_stacktrace�ca_certs�propagate_traces�traces_sample_rate�traces_sampler�profiles_sample_rate�profiles_sampler�
profiler_mode�profile_lifecycle�profile_session_sample_rate�auto_enabling_integrations�disabled_integrations�auto_session_tracking�send_client_reports�_experiments�
proxy_headers�instrumenter�before_send_transaction�project_root�enable_tracing�include_local_variables�include_source_context�trace_propagation_targets�functions_to_trace�event_scrubber�max_value_length�enable_backpressure_handling�
error_sampler�enable_db_query_source�db_query_source_threshold_ms�enable_http_request_source� http_request_source_threshold_ms�	spotlight�	cert_file�key_file�custom_repr�add_full_stack�max_stack_framesr=r>�trace_ignore_status_codesr?r@�org_id�strict_trace_continuation�stream_gen_ai_spans�dsnz
Optional[str]rmrnrorprqrrz-Sequence[sentry_sdk.integrations.Integration]rsz	List[str]rtrurvrwznOptional[Union[sentry_sdk.transport.Transport, Type[sentry_sdk.transport.Transport], Callable[[Event], None]]]rxryrzzOptional[bool]r{r|r}zSequence[Union[type, str]]r~rz,Optional[List[Tuple[int, int, int | bytes]]]r�r�zOptional[EventProcessor]r�zOptional[BreadcrumbProcessor]r�r�r�r�r�zOptional[float]r�zOptional[TracesSampler]r�r�r�zOptional[ProfilerMode]r�zLiteral["manual", "trace"]r�r�r�z7Optional[Sequence[sentry_sdk.integrations.Integration]]r�r�r�r0r�zOptional[Dict[str, str]]r�r�zOptional[TransactionProcessor]r�r�r�r�r�zOptional[Sequence[str]]r�zSequence[Dict[str, str]]r�z+Optional[sentry_sdk.scrubber.EventScrubber]r�z
Optional[int]r�r�z5Optional[Callable[[Event, Hint], Union[float, bool]]]r�r�r�r�r�zOptional[Union[bool, str]]r�r�r�z&Optional[Callable[..., Optional[str]]]r�r�r=r>z.Optional[Callable[[Log, Hint], Optional[Log]]]r�zAbstractSet[int]r?r@z4Optional[Callable[[Metric, Hint], Optional[Metric]]]r�r�r�rScE��y)a�WInitialize the Sentry SDK with the given parameters. All parameters described here can be used in a call to `sentry_sdk.init()`.

        :param dsn: The DSN tells the SDK where to send the events.

            If this option is not set, the SDK will just not send any data.

            The `dsn` config option takes precedence over the environment variable.

            Learn more about `DSN utilization <https://docs.sentry.io/product/sentry-basics/dsn-explainer/#dsn-utilization>`_.

        :param debug: Turns debug mode on or off.

            When `True`, the SDK will attempt to print out debugging information. This can be useful if something goes
            wrong with event sending.

            The default is always `False`. It's generally not recommended to turn it on in production because of the
            increase in log output.

            The `debug` config option takes precedence over the environment variable.

        :param release: Sets the release.

            If not set, the SDK will try to automatically configure a release out of the box but it's a better idea to
            manually set it to guarantee that the release is in sync with your deploy integrations.

            Release names are strings, but some formats are detected by Sentry and might be rendered differently.

            See `the releases documentation <https://docs.sentry.io/platforms/python/configuration/releases/>`_ to learn how the SDK tries to
            automatically configure a release.

            The `release` config option takes precedence over the environment variable.

            Learn more about how to send release data so Sentry can tell you about regressions between releases and
            identify the potential source in `the product documentation <https://docs.sentry.io/product/releases/>`_.

        :param environment: Sets the environment. This string is freeform and set to `production` by default.

            A release can be associated with more than one environment to separate them in the UI (think `staging` vs
            `production` or similar).

            The `environment` config option takes precedence over the environment variable.

        :param dist: The distribution of the application.

            Distributions are used to disambiguate build or deployment variants of the same release of an application.

            The dist can be for example a build number.

        :param sample_rate: Configures the sample rate for error events, in the range of `0.0` to `1.0`.

            The default is `1.0`, which means that 100% of error events will be sent. If set to `0.1`, only 10% of
            error events will be sent.

            Events are picked randomly.

        :param error_sampler: Dynamically configures the sample rate for error events on a per-event basis.

            This configuration option accepts a function, which takes two parameters (the `event` and the `hint`), and
            which returns a boolean (indicating whether the event should be sent to Sentry) or a floating-point number
            between `0.0` and `1.0`, inclusive.

            The number indicates the probability the event is sent to Sentry; the SDK will randomly decide whether to
            send the event with the given probability.

            If this configuration option is specified, the `sample_rate` option is ignored.

        :param ignore_errors: A list of exception class names that shouldn't be sent to Sentry.

            Errors that are an instance of these exceptions or a subclass of them, will be filtered out before they're
            sent to Sentry.

            By default, all errors are sent.

        :param max_breadcrumbs: This variable controls the total amount of breadcrumbs that should be captured.

            This defaults to `100`, but you can set this to any number.

            However, you should be aware that Sentry has a `maximum payload size <https://develop.sentry.dev/sdk/data-model/envelopes/#size-limits>`_
            and any events exceeding that payload size will be dropped.

        :param attach_stacktrace: When enabled, stack traces are automatically attached to all messages logged.

            Stack traces are always attached to exceptions; however, when this option is set, stack traces are also
            sent with messages.

            This option means that stack traces appear next to all log messages.

            Grouping in Sentry is different for events with stack traces and without. As a result, you will get new
            groups as you enable or disable this flag for certain events.

        :param send_default_pii: If this flag is enabled, `certain personally identifiable information (PII)
            <https://docs.sentry.io/platforms/python/data-management/data-collected/>`_ is added by active integrations.

            If you enable this option, be sure to manually remove what you don't want to send using our features for
            managing `Sensitive Data <https://docs.sentry.io/data-management/sensitive-data/>`_.

        :param event_scrubber: Scrubs the event payload for sensitive information such as cookies, sessions, and
            passwords from a `denylist`.

            It can additionally be used to scrub from another `pii_denylist` if `send_default_pii` is disabled.

            See how to `configure the scrubber here <https://docs.sentry.io/data-management/sensitive-data/#event-scrubber>`_.

        :param include_source_context: When enabled, source context will be included in events sent to Sentry.

            This source context includes the five lines of code above and below the line of code where an error
            happened.

        :param include_local_variables: When enabled, the SDK will capture a snapshot of local variables to send with
            the event to help with debugging.

        :param add_full_stack: When capturing errors, Sentry stack traces typically only include frames that start the
            moment an error occurs.

            But if the `add_full_stack` option is enabled (set to `True`), all frames from the start of execution will
            be included in the stack trace sent to Sentry.

        :param max_stack_frames: This option limits the number of stack frames that will be captured when
            `add_full_stack` is enabled.

        :param server_name: This option can be used to supply a server name.

            When provided, the name of the server is sent along and persisted in the event.

            For many integrations, the server name actually corresponds to the device hostname, even in situations
            where the machine is not actually a server.

        :param project_root: The full path to the root directory of your application.

            The `project_root` is used to mark frames in a stack trace either as being in your application or outside
            of the application.

        :param in_app_include: A list of string prefixes of module names that belong to the app.

            This option takes precedence over `in_app_exclude`.

            Sentry differentiates stack frames that are directly related to your application ("in application") from
            stack frames that come from other packages such as the standard library, frameworks, or other dependencies.

            The application package is automatically marked as `inApp`.

            The difference is visible in [sentry.io](https://sentry.io), where only the "in application" frames are
            displayed by default.

        :param in_app_exclude: A list of string prefixes of module names that do not belong to the app, but rather to
            third-party packages.

            Modules considered not part of the app will be hidden from stack traces by default.

            This option can be overridden using `in_app_include`.

        :param max_request_body_size: This parameter controls whether integrations should capture HTTP request bodies.
            It can be set to one of the following values:

            - `never`: Request bodies are never sent.
            - `small`: Only small request bodies will be captured. The cutoff for small depends on the SDK (typically
              4KB).
            - `medium`: Medium and small requests will be captured (typically 10KB).
            - `always`: The SDK will always capture the request body as long as Sentry can make sense of it.

            Please note that the Sentry server [limits HTTP request body size](https://develop.sentry.dev/sdk/
            expected-features/data-handling/#variable-size). The server always enforces its size limit, regardless of
            how you configure this option.

        :param max_value_length: The number of characters after which the values containing text in the event payload
            will be truncated.

            WARNING: If the value you set for this is exceptionally large, the event may exceed 1 MiB and will be
            dropped by Sentry.

        :param ca_certs: A path to an alternative CA bundle file in PEM-format.

        :param send_client_reports: Set this boolean to `False` to disable sending of client reports.

            Client reports allow the client to send status reports about itself to Sentry, such as information about
            events that were dropped before being sent.

        :param integrations: List of integrations to enable in addition to `auto-enabling integrations (overview)
            <https://docs.sentry.io/platforms/python/integrations>`_.

            This setting can be used to override the default config options for a specific auto-enabling integration
            or to add an integration that is not auto-enabled.

        :param disabled_integrations: List of integrations that will be disabled.

            This setting can be used to explicitly turn off specific `auto-enabling integrations (list)
            <https://docs.sentry.io/platforms/python/integrations/#available-integrations>`_ or
            `default <https://docs.sentry.io/platforms/python/integrations/default-integrations/>`_ integrations.

        :param auto_enabling_integrations: Configures whether `auto-enabling integrations (configuration)
            <https://docs.sentry.io/platforms/python/integrations/#available-integrations>`_ should be enabled.

            When set to `False`, no auto-enabling integrations will be enabled by default, even if the corresponding
            framework/library is detected.

        :param default_integrations: Configures whether `default integrations
            <https://docs.sentry.io/platforms/python/integrations/default-integrations/>`_ should be enabled.

            Setting `default_integrations` to `False` disables all default integrations **as well as all auto-enabling
            integrations**, unless they are specifically added in the `integrations` option, described above.

        :param before_send: This function is called with an SDK-specific message or error event object, and can return
            a modified event object, or `null` to skip reporting the event.

            This can be used, for instance, for manual PII stripping before sending.

            By the time `before_send` is executed, all scope data has already been applied to the event. Further
            modification of the scope won't have any effect.

        :param before_send_transaction: This function is called with an SDK-specific transaction event object, and can
            return a modified transaction event object, or `null` to skip reporting the event.

            One way this might be used is for manual PII stripping before sending.

        :param before_breadcrumb: This function is called with an SDK-specific breadcrumb object before the breadcrumb
            is added to the scope.

            When nothing is returned from the function, the breadcrumb is dropped.

            To pass the breadcrumb through, return the first argument, which contains the breadcrumb object.

            The callback typically gets a second argument (called a "hint") which contains the original object from
            which the breadcrumb was created to further customize what the breadcrumb should look like.

        :param transport: Switches out the transport used to send events.

            How this works depends on the SDK. It can, for instance, be used to capture events for unit-testing or to
            send it through some more complex setup that requires proxy authentication.

        :param transport_queue_size: The maximum number of events that will be queued before the transport is forced to
            flush.

        :param http_proxy: When set, a proxy can be configured that should be used for outbound requests.

            This is also used for HTTPS requests unless a separate `https_proxy` is configured. However, not all SDKs
            support a separate HTTPS proxy.

            SDKs will attempt to default to the system-wide configured proxy, if possible. For instance, on Unix
            systems, the `http_proxy` environment variable will be picked up.

        :param https_proxy: Configures a separate proxy for outgoing HTTPS requests.

            This value might not be supported by all SDKs. When not supported the `http-proxy` value is also used for
            HTTPS requests at all times.

        :param proxy_headers: A dict containing additional proxy headers (usually for authentication) to be forwarded
            to `urllib3`'s `ProxyManager <https://urllib3.readthedocs.io/en/1.24.3/reference/index.html#urllib3.poolmanager.ProxyManager>`_.

        :param shutdown_timeout: Controls how many seconds to wait before shutting down.

            Sentry SDKs send events from a background queue. This queue is given a certain amount to drain pending
            events. The default is SDK specific but typically around two seconds.

            Setting this value too low may cause problems for sending events from command line applications.

            Setting the value too high will cause the application to block for a long time for users experiencing
            network connectivity problems.

        :param keep_alive: Determines whether to keep the connection alive between requests.

            This can be useful in environments where you encounter frequent network issues such as connection resets.

        :param cert_file: Path to the client certificate to use.

            If set, supersedes the `CLIENT_CERT_FILE` environment variable.

        :param key_file: Path to the key file to use.

            If set, supersedes the `CLIENT_KEY_FILE` environment variable.

        :param socket_options: An optional list of socket options to use.

            These provide fine-grained, low-level control over the way the SDK connects to Sentry.

            If provided, the options will override the default `urllib3` `socket options
            <https://urllib3.readthedocs.io/en/stable/reference/urllib3.connection.html#urllib3.connection.HTTPConnection>`_.

        :param traces_sample_rate: A number between `0` and `1`, controlling the percentage chance a given transaction
            will be sent to Sentry.

            (`0` represents 0% while `1` represents 100%.) Applies equally to all transactions created in the app.

            Either this or `traces_sampler` must be defined to enable tracing.

            If `traces_sample_rate` is `0`, this means that no new traces will be created. However, if you have
            another service (for example a JS frontend) that makes requests to your service that include trace
            information, those traces will be continued and thus transactions will be sent to Sentry.

            If you want to disable all tracing you need to set `traces_sample_rate=None`. In this case, no new traces
            will be started and no incoming traces will be continued.

        :param traces_sampler: A function responsible for determining the percentage chance a given transaction will be
            sent to Sentry.

            It will automatically be passed information about the transaction and the context in which it's being
            created, and must return a number between `0` (0% chance of being sent) and `1` (100% chance of being
            sent).

            Can also be used for filtering transactions, by returning `0` for those that are unwanted.

            Either this or `traces_sample_rate` must be defined to enable tracing.

        :param trace_propagation_targets: An optional property that controls which downstream services receive tracing
            data, in the form of a `sentry-trace` and a `baggage` header attached to any outgoing HTTP requests.

            The option may contain a list of strings or regex against which the URLs of outgoing requests are matched.

            If one of the entries in the list matches the URL of an outgoing request, trace data will be attached to
            that request.

            String entries do not have to be full matches, meaning the URL of a request is matched when it _contains_
            a string provided through the option.

            If `trace_propagation_targets` is not provided, trace data is attached to every outgoing request from the
            instrumented client.

        :param functions_to_trace: An optional list of functions that should be set up for tracing.

            For each function in the list, a span will be created when the function is executed.

            Functions in the list are represented as strings containing the fully qualified name of the function.

            This is a convenient option, making it possible to have one central place for configuring what functions
            to trace, instead of having custom instrumentation scattered all over your code base.

            To learn more, see the `Custom Instrumentation <https://docs.sentry.io/platforms/python/tracing/instrumentation/custom-instrumentation/#define-span-creation-in-a-central-place>`_ documentation.

        :param enable_backpressure_handling: When enabled, a new monitor thread will be spawned to perform health
            checks on the SDK.

            If the system is unhealthy, the SDK will keep halving the `traces_sample_rate` set by you in 10 second
            intervals until recovery.

            This down sampling helps ensure that the system stays stable and reduces SDK overhead under high load.

            This option is enabled by default.

        :param enable_db_query_source: When enabled, the source location will be added to database queries.

        :param db_query_source_threshold_ms: The threshold in milliseconds for adding the source location to database
            queries.

            The query location will be added to the query for queries slower than the specified threshold.

        :param enable_http_request_source: When enabled, the source location will be added to outgoing HTTP requests.

        :param http_request_source_threshold_ms: The threshold in milliseconds for adding the source location to an
            outgoing HTTP request.

            The request location will be added to the request for requests slower than the specified threshold.

        :param custom_repr: A custom `repr <https://docs.python.org/3/library/functions.html#repr>`_ function to run
            while serializing an object.

            Use this to control how your custom objects and classes are visible in Sentry.

            Return a string for that repr value to be used or `None` to continue serializing how Sentry would have
            done it anyway.

        :param profiles_sample_rate: A number between `0` and `1`, controlling the percentage chance a given sampled
            transaction will be profiled.

            (`0` represents 0% while `1` represents 100%.) Applies equally to all transactions created in the app.

            This is relative to the tracing sample rate - e.g. `0.5` means 50% of sampled transactions will be
            profiled.

        :param profiles_sampler:

        :param profiler_mode:

        :param profile_lifecycle:

        :param profile_session_sample_rate:

        :param enable_tracing:

        :param propagate_traces:

        :param auto_session_tracking:

        :param spotlight:

        :param instrumenter:

        :param enable_logs: Set `enable_logs` to True to enable the SDK to emit
            Sentry logs. Defaults to False.

        :param before_send_log: An optional function to modify or filter out logs
            before they're sent to Sentry. Any modifications to the log in this
            function will be retained. If the function returns None, the log will
            not be sent to Sentry.

        :param trace_ignore_status_codes: An optional property that disables tracing for
            HTTP requests with certain status codes.

            Requests are not traced if the status code is contained in the provided set.

            If `trace_ignore_status_codes` is not provided, requests with any status code
            may be traced.

            This option has no effect in span streaming mode (`trace_lifecycle="stream"`).

        :param strict_trace_continuation: If set to `True`, the SDK will only continue a trace if the `org_id` of the incoming trace found in the
           `baggage` header matches the `org_id` of the current Sentry client and only if BOTH are present.

            If set to `False`, consistency of `org_id` will only be enforced if both are present. If either are missing, the trace will be continued.

            The client's organization ID is extracted from the DSN or can be set with the `org_id` option.
            If the organization IDs do not match, the SDK will start a new trace instead of continuing the incoming one.
            This is useful to prevent traces of unknown third-party services from being continued in your application.

        :param org_id: An optional organization ID. The SDK will try to extract if from the DSN in most cases
            but you can provide it explicitly for self-hosted and Relay setups. This value is used for
            trace propagation and for features like `strict_trace_continuation`.

        :param stream_gen_ai_spans: When set, generative AI spans are sent in a new transport format to
            reduce downstream data loss.

        :param _experiments:
        Nr)GrWr�rmrnrorprqrrrsrtrurvrwrxryrzr{r|r}r~rr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r=r>r�r?r@r�r�r�sG                                                                       r�__init__zClientConstructor.__init__�s��b	
rrU)r	r
r�DEFAULT_MAX_BREADCRUMBS�DEFAULT_QUEUE_SIZEr_rb�	MATCH_ALL�DEFAULT_MAX_VALUE_LENGTH�DEFAULT_ADD_FULL_STACK�DEFAULT_MAX_STACK_FRAMES�	frozenset�int�float�boolr]r�rrrriri�sa�� $�q
� 7�#'�'+�'+�"#�HJ�&(�&(�%)� $�GK�$6� �-1�&*�'+�68�%-�IM�'+�26�=A�"&�"'�$(�!%�04�48�26�6:�26�:B�9=�+/�[_�&*�$(�&(�48�(4�(;�(;�DH�(,�+/�48�37��@
�:<�HL�,D�-1�QU�'+�,/�+/�03�26�%)�$(�@D�5�,D�!�LP�8A��#�UY�"&�*/�$)�Uq
�
�q
��	q
�
!�q
�%�
q
�%�q
� �q
�F�q
�$�q
�$�q
�#�q
��q
�D�q
�"�q
� �!q
�"+�#q
�$$�%q
�&%�'q
�(4�)q
�* #�+q
�,G�-q
�.%�/q
�00�1q
�2;�3q
�4 �5q
�6 �7q
�8"�9q
�:�;q
�<.�=q
�>2�?q
�@0�Aq
�B4�Cq
�D0�Eq
�F8�Gq
�H&7�Iq
�J%)�Kq
�L Y�Mq
�N $�Oq
�P"�Qq
�R$�Sq
�T2�Uq
�V&�Wq
�X"B�Yq
�Z&�[q
�\)�]q
�^"2�_q
�`!1�aq
�b$=�cq
�h7�iq
�jF�kq
�l*�mq
�n'+�oq
�pO�qq
�r!%�sq
�t'*�uq
�v%)�wq
�x+.�yq
�z0�{q
�|#�}q
�~"�q
�@>�Aq
�B�Cq
�D*�Eq
�F�Gq
�HJ�Iq
�J$6�Kq
�L�Mq
�NS�Oq
�P �Qq
�R$(�Sq
�T"�Uq
�V
�Wq
rric
�$�ddl}|jtj�}|jxsd}|j
xsi}t
tjt|jt|�d|�|j���S)Nrr)
�inspect�getfullargspecrir��defaults�kwonlydefaults�dict�	itertools�chain�zip�args�len�items)r��ar�r�s    r�_get_default_optionsr��s{������0�9�9�:�A��z�z��R�H��%�%�+��N����������H�
�~�'�(�(�3�� � �"�	
��rz2.62.0)rSzdict[str, Any])7r��enumr�typingrr�r�r�rrrrrrrrrrr r!�typing_extensionsr"r#�
sentry_sdk�sentry_sdk._typesr$r%r&r'r(r)r*r+r,r-r.r/r�r�r0r�r�r��FALSE_VALUESr]rNr_rerkr�r#rir��DEFAULT_OPTIONS�VERSIONrrr�<module>r�s|���� �������/�4�/��d��
����5��
�
�
�
�&��	
���#��	
���#��	
�
 ��$��	
�
.�x��~�		
�

(��2H�)I�	
�
'����
	
�
/���
�	
�
*�8�C�=�	
�
)�(�?�*C�	
�
"�8�C�=�	
�
�x��~�	
�
�x��~�	
�
�8�D�>�	
�
�x��#�t��h�s�m�1K�(L�M�	
�
�h�t�n�	
� 
!�(�8�V�T�N�H�V�DT�4T�+U�"V�!	
�"
�x��0B�(C�D�#	
�$%�%6�7� (��(�D�)�8�H�+=�=�>�!�19���-	
�0�5�K�:�����	����3�����
��
k�k�\$�$�4C�C�Pr
�r
�j�'�(����r
Back to Directory File Manager