Firetail Lambda Package
Project description
Firetail Python Lambda Middleware
The purpose of this module is to correctly log out the event and response payload to allow the firetail extension to then send it on to the firetail logging api
pip install firetail-lambda
How to implement
Add Environment variables to code/lambda
export FIRETAIL_API_URL=https://api.logging.eu-west-1.sandbox.firetail.app/logs/bulk
export FIRETAIL_API_TOKEN=<your-api-token>
Implementing Middleware in lambda function
from firetail_lambda import firetail_handler
@firetail_handler()
def lambda_handler(event, context):
return {
"statusCode": 200,
"body": json.dumps({
"message": "Hello"
})
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Firetail-Lambda-0.1.2.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for Firetail_Lambda-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6dd2a6a2d2730123c472a67bd1837283b2253c38f2944d1d723691b3ea81dd58 |
|
MD5 | 417aceff8394eb8f80fd4ed28f5c7cab |
|
BLAKE2b-256 | bdb3a8f10f4ee7b50aad92ac01276e0954bfaadb322b9a4b82166f25867462c8 |