Middleware for tracking Falcon requests/responses with Elastic APM.
Project description
elastic-apm-falcon
Middleware for tracking Falcon requests/responses with Elastic APM.
This package provides a middleware for monitoring Falcon applications with Elastic APM. The middleware hooks into Falcon's request and response processing and maintains an Elastic APM client to track transactions and metadata.
Installation
You can install the latest stable version from PyPI:
$ pip install elastic-apm-falcon
Usage
You can add elastic_apm_falcon
like any other middleware to your Falcon application. However,
you should make sure to import and instrument elasticapm
as early as possible.
# import and instrument elasticapm as early as possible
import elasticapm
elasticapm.instrument()
# import remaining modules
import falcon
from elastic_apm_falcon import ElasticApmMiddleware
# initialize Elastic APM middleware
elastic_apm_middleware = ElasticApmMiddleware(service_name="your_service")
# initialize Falcon application
application = falcon.App(middleware=elastic_apm_middleware)
# add routes and resources to your application below
...
License
This package is licensed under the terms of the MIT license.
Made with ♥ at snapADDY.
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
Built Distribution
Hashes for elastic_apm_falcon-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d23dc8b456f1c7ce53000f9bece5cdad8e0a343aa0b3e963bb528bcf037085d |
|
MD5 | df865be7b1945230369789dd6cb58751 |
|
BLAKE2b-256 | af0d563dc0dd33a986634692cba34a5cb2630bd98afa353bc7c7f4e4b85a9151 |