Skip to main content

Firetail Lambda Package

Project description

Firetail Python Lambda Middleware

PyPI package version number Actions Status License: LGPL v3 codecov

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.3.tar.gz (6.2 kB view hashes)

Uploaded Source

Built Distribution

Firetail_Lambda-0.1.3-py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page