
    lhg                        d dl Z d dlmZ d dlmZ dZdZdZ G d de      Z G d	 d
e      Z	erd dl
Z
d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#  edi dee$   dee$   dee%   dee%   dee   dee%   dee$   dee$   d ee	   d!ee$   d"ee%   d#ee%   d$eee&e#ee"ge%f      d%ee%   d&ee%   d'eeeegee   f      d(      Z'dZ(dZ)d)Z*g d*Z+ G d+ d,e&e      Z, G d- d.      Z- G d/ d0      Z. G d1 d2      Z/ G d3 d4      Z0 G d5 d6      Z1d7 Z2 e2       Z3[2d8Z4y)9    N)Enum)TYPE_CHECKINGi d   Fc                       e Zd ZdZdZy)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__ENVELOPE     c/var/www/pru.catia.catastroantioquia-mas.com/tasa/lib/python3.12/site-packages/sentry_sdk/consts.pyr   r      s     Hr   r   c                       e Zd ZdZdZy)CompressionAlgogzipbrN)r	   r
   r   GZIPBROTLIr   r   r   r   r      s    DFr   r   )Optional)Callable)Union)List)Type)Dict)Any)Sequence)Tuple)Literal)	TypedDict)BreadcrumbProcessorContinuousProfilerModeEventEventProcessorHintLogMeasurementUnitProfilerModeTracesSamplerTransactionProcessor
MetricTagsMetricValue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enable_metricsbefore_emit_metricmetric_code_locationsenable_logsbefore_send_log)totalz.*)falsenooffn0c                   "    e Zd ZdZdZdZdZd Zy)SPANTEMPLATEdefaultai_agentai_toolai_chatc                     | j                   S N)value)selfs    r   __str__zSPANTEMPLATE.__str__m   s    zzr   N)r	   r
   r   DEFAULTAI_AGENTAI_TOOLAI_CHATrO   r   r   r   rF   rF   g   s    GHGGr   rF   c                       e Zd ZdZdZy)INSTRUMENTERsentryotelN)r	   r
   r   SENTRYOTELr   r   r   rU   rU   r   s    FDr   rU   c                   0   e 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	 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&	 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^y])^SPANDATAz
    Additional information describing the type of the span.
    See: https://develop.sentry.dev/sdk/performance/span-data-conventions/
    zai.citationszai.documentszai.finish_reasonzai.frequency_penaltyzai.function_callzai.generation_idzai.input_messageszai.logit_biaszai.metadatazai.model_idzai.pipeline.namezai.preamblezai.presence_penaltyzai.raw_promptingzai.response_formatzai.responseszai.search_querieszai.is_search_requiredzai.search_resultszai.seedzai.streamingzai.tagszai.temperaturezai.textszai.top_kzai.top_pzai.tool_callszai.toolszai.warningsz	cache.hitzcache.item_sizez	cache.keyzcode.filepathzcode.functionzcode.linenozcode.namespacezdb.mongodb.collectionzdb.namezdb.operationz	db.systemzdb.userzgen_ai.agent.namezgen_ai.choicezgen_ai.operation.namezgen_ai.pipeline.namezgen_ai.response.finish_reasonszgen_ai.response.idzgen_ai.response.modelzgen_ai.response.streamingzgen_ai.response.textzgen_ai.response.tool_callszgen_ai.request.available_toolsz gen_ai.request.frequency_penaltyzgen_ai.request.max_tokenszgen_ai.request.messageszgen_ai.request.modelzgen_ai.request.presence_penaltyzgen_ai.request.seedzgen_ai.request.temperaturezgen_ai.request.top_kzgen_ai.request.top_pzgen_ai.systemzgen_ai.tool.descriptionzgen_ai.tool.inputzgen_ai.tool.namezgen_ai.tool.outputzgen_ai.tool.typezgen_ai.usage.input_tokensz gen_ai.usage.input_tokens.cachedzgen_ai.usage.output_tokensz$gen_ai.usage.output_tokens.reasoningzgen_ai.usage.total_tokenszgen_ai.user.messagezhttp.fragmentzhttp.methodz
http.queryzhttp.response.status_codezmessaging.destination.namezmessaging.message.idz!messaging.message.receive.latencyzmessaging.message.retry.countzmessaging.systemznetwork.peer.addressznetwork.peer.portprofiler_idzserver.addresszserver.portzserver.socket.addresszserver.socket.portz	thread.idzthread.nameN)_r	   r
   r   r   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CODE_FILEPATHCODE_FUNCTIONCODE_LINENOCODE_NAMESPACEDB_MONGODB_COLLECTIONDB_NAMEDB_OPERATION	DB_SYSTEMDB_USERGEN_AI_AGENT_NAMEGEN_AI_CHOICE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_RESPONSE_TOOL_CALLSGEN_AI_REQUEST_AVAILABLE_TOOLS GEN_AI_REQUEST_FREQUENCY_PENALTYGEN_AI_REQUEST_MAX_TOKENSGEN_AI_REQUEST_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_TOOL_DESCRIPTIONGEN_AI_TOOL_INPUTGEN_AI_TOOL_NAMEGEN_AI_TOOL_OUTPUTGEN_AI_TOOL_TYPEGEN_AI_USAGE_INPUT_TOKENS GEN_AI_USAGE_INPUT_TOKENS_CACHED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_QUERYHTTP_STATUS_CODEMESSAGING_DESTINATION_NAMEMESSAGING_MESSAGE_ID!MESSAGING_MESSAGE_RECEIVE_LATENCYMESSAGING_MESSAGE_RETRY_COUNTMESSAGING_SYSTEMNETWORK_PEER_ADDRESSNETWORK_PEER_PORTPROFILER_IDSERVER_ADDRESSSERVER_PORTSERVER_SOCKET_ADDRESSSERVER_SOCKET_PORT	THREAD_IDTHREAD_NAMEr   r   r   r[   r[   w   s   
 "L "L * 2 * * , $M  K  K *  K 0 * . "L , 1 , G "L G &N H H H $M H  K I
 (O
 I
 $M
 $M
  K
 &N
 4 G
 "L I G ,
 $M
 4
 2
 &F"
 .
 4
 !<
 2
 ">
 &F"
 (J$
 !<
 8
 2
 'H#
 0
 ">
 2
 2
 $M
 8
 ,
 *
 .
 *
 !<
 (J$
 ">
 ,R(
 !<
 0
 $M
  K
 J
 3
 ">
 2 )L% %D! * 2
 ,
  K
 &N
  K
 4
 . I
  Kr   r[   c                   T    e 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dZy)
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
   r   r   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_ERRORr   r   r   r   r     sc     G%NII+/%N)I	B!L+-'OK#M#Mr   r   c                       e 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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&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?y>)?OPzai.messages.create.anthropicz	cache.getz	cache.putz!ai.chat_completions.create.coherezai.embeddings.create.coheredbzdb.rediszevent.djangofunctionzfunction.awszfunction.gcpzgen_ai.chatzgen_ai.embeddingszgen_ai.execute_toolzgen_ai.handoffzgen_ai.pipelinezgen_ai.invoke_agentzgen_ai.responseszgraphql.executezgraphql.mutationzgraphql.parsezgraphql.resolvezgraphql.subscriptionzgraphql.queryzgraphql.validatezgrpc.clientzgrpc.serverzhttp.clientzhttp.client.streamzhttp.serverzmiddleware.djangozmiddleware.litestarzmiddleware.litestar.receivezmiddleware.litestar.sendzmiddleware.starlettezmiddleware.starlette.receivezmiddleware.starlette.sendzmiddleware.starlitezmiddleware.starlite.receivezmiddleware.starlite.sendz*ai.chat_completions.create.huggingface_hubzqueue.processzqueue.publishzqueue.submit.arqzqueue.task.arqzqueue.submit.celeryzqueue.task.celeryzqueue.task.rqzqueue.submit.hueyzqueue.task.hueyzqueue.submit.rayzqueue.task.ray
subprocesszsubprocess.waitzsubprocess.communicateztemplate.renderzview.renderzview.response.renderzwebsocket.serverzsocket.connectionz
socket.dnsN)@r	   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_EMBEDDINGSGEN_AI_EXECUTE_TOOLGEN_AI_HANDOFFGEN_AI_PIPELINE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
SUBPROCESSSUBPROCESS_WAITSUBPROCESS_COMMUNICATETEMPLATE_RENDERVIEW_RENDERVIEW_RESPONSE_RENDERWEBSOCKET_SERVERSOCKET_CONNECTION
SOCKET_DNSr   r   r   r   r     sV    >II%H"<	BH!LH!L!LK+/%N'O/)'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)+Jr   r   c            ?           e Zd Z	 deddddg g g dddeddddg ddddddddddddddddddddi dej                  dddddegg dedddddddde	e
ddd	=d
Zy)ClientConstructorN   Tg      ?mediumFmanualr   )=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	spotlight	cert_filekey_filecustom_repradd_full_stackmax_stack_framesr=   r>   c       =              y)aO  Initialize 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 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 _experiments:
        Nr   )?rN   dsnr#  r$  r%  r&  r'  r(  r)  r*  r+  r,  r-  r.  r/  r0  r1  r2  r3  r4  r5  r6  r7  r8  r9  r:  r;  r<  r=  r>  r?  r@  rA  rB  rC  rD  rE  rF  rG  rH  rI  rJ  rK  rL  rM  rN  rO  rP  rQ  rR  rS  rT  rU  rV  rW  rX  rY  rZ  r[  r\  r]  r=   r>   s?                                                                  r   __init__zClientConstructor.__init__T  s    R 	r   rL   )r	   r
   r   DEFAULT_MAX_BREADCRUMBSDEFAULT_QUEUE_SIZErU   rX   	MATCH_ALLDEFAULT_MAX_VALUE_LENGTHDEFAULT_ADD_FULL_STACKDEFAULT_MAX_STACK_FRAMESr`  r   r   r   r  r  R  s     I 0!/&!"$(#'"" !(( $ $##
 1%)#%(-1EIr   r  c            
      $   dd l } | j                  t        j                        }|j                  xs d}|j
                  xs i }t        t        j                  t        |j                  t        |       d  |      |j                                     S )Nr   r   )inspectgetfullargspecr  r`  defaultskwonlydefaultsdict	itertoolschainzipargslenitems)rh  arj  rk  s       r   _get_default_optionsrt     s{    099:AzzRH%%+NH~'((3  "	
 r   z2.35.2)5rm  enumr   typingr   rd  rf  re  r   r   
sentry_sdkr   r   r   r   r   r   r   r   r   typing_extensionsr    r!   sentry_sdk._typesr"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   intboolstrr.   rb  ra  rc  FALSE_VALUESrF   rU   r[   r   r   r  rt  DEFAULT_OPTIONSVERSIONr   r   r   <module>r     s3       #   4 d 
 )+   & 	
#	
#	
  $	
 .x~		

 (2H)I	
 '	
 /	
 *8C=	
 )(?*C	
 "8C=	
 x~	
 htn	
 !(#{OZH$NO#	
  $Xd^!	
" 8D>#	
$ x#thsm1K(LM%	
( -K2   	3  
z	 z	z$ $4? ?HK K\  '( r   