
    g                        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 eZeeegef   Zdd		 	 	 	 	 	 	 	 	 	 	 dd
Zy# e
$ r	  ed      w xY w)    )annotations)Context)AwsLambdaInstrumentor)MeterProvider)TracerProviderz`logfire.instrument_aws_lambda()` requires the `opentelemetry-instrumentation-aws-lambda` package.
You can install this with:
    pip install 'logfire[aws-lambda]')AnyCallableN)event_context_extractorc               J    |||d<    t               j                  d||d|S )zInstrument the AWS Lambda runtime so that spans are automatically created for each invocation.

    See the `Logfire.instrument_aws_lambda` method for details.
    r
   )tracer_providermeter_provider )r   
instrument)lambda_handlerr   r   r
   kwargss        ^/var/www/openai/venv/lib/python3.12/site-packages/logfire/_internal/integrations/aws_lambda.pyinstrument_aws_lambdar      s8     *,C()- "--wo^lwpvww    )r   LambdaHandlerr   r   r   r   r
   z'Callable[[LambdaEvent], Context] | Noner   r   returnNone)
__future__r   opentelemetry.contextr   (opentelemetry.instrumentation.aws_lambdar   opentelemetry.metricsr   opentelemetry.tracer   ImportErrorRuntimeErrortypingr   r	   LambdaEventr   r   r   r   r   <module>r!      s    "
-N32 !+s+S01 HLx!x $x "	x
 Ex x 
x  
	0 s   A A