OwlCyberSecurity - MANAGER
Edit File: __init__.cpython-311.pyc
� ��bgE � � � d Z ddlmZ ddlZddlZddlZddlmZ ddlm Z ddl mZ ej d� � Z d� Z G d � d e � � ZdS )z� raven.contrib.awslambda ~~~~~~~~~~~~~~~~~~~~ Raven wrapper for AWS Lambda handlers. :copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. � )�absolute_importN)�FunctionType)�Client)� HTTPTransportzsentry.errors.clientc � � ddddddd�S )N�AWS_LAMBDA_FUNCTION_NAME�AWS_LAMBDA_FUNCTION_VERSION�AWS_LAMBDA_FUNCTION_MEMORY_SIZE�AWS_LAMBDA_LOG_GROUP_NAME�AWS_LAMBDA_LOG_STREAM_NAME� AWS_REGION)�lambda�version�memory_size� log_group� log_stream�region� r � �q/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/raven/contrib/awslambda/__init__.py�get_default_tagsr s# � �,�0�8�0�2�� � � r c � � � e Zd ZdZ� fd�Z� fd�Z� fd�Zd d�Zed� � � Z ed� � � Z ed � � � Z� xZS )�LambdaClienta� Raven decorator for AWS Lambda. By default, the lambda integration will capture unhandled exceptions and instrument logging. Usage: >>> from raven.contrib.awslambda import LambdaClient >>> >>> >>> client = LambdaClient() >>> >>> @client.capture_exceptions >>> def handler(event, context): >>> ... >>> raise Exception('I will be sent to sentry!') c � �� |� dt � � } t t | � � j |d|i|�� d S )N� transport)�popr �superr �__init__)�self�args�kwargsr � __class__s �r r zLambdaClient.__init__8 sC �� ��J�J�{�M�:�:� �*��l�D�!�!�*�D�P�I�P��P�P�P�P�Pr c � �� d|vri x|d<