Skip to main content

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

elastic-apm-falcon-1.0.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

elastic_apm_falcon-1.0.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file elastic-apm-falcon-1.0.1.tar.gz.

File metadata

  • Download URL: elastic-apm-falcon-1.0.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0b2 CPython/3.9.13 Linux/5.13.0-1031-azure

File hashes

Hashes for elastic-apm-falcon-1.0.1.tar.gz
Algorithm Hash digest
SHA256 0aa44d87569ecaf226b1364a54e520dc1b75ada01d4fb24f894882f9ec1ceee9
MD5 8731888773fb947dbebdbea0877c64e3
BLAKE2b-256 eed95545056698d4ea054fcd9a0be88c3d669415fc53ba512776279bacc90291

See more details on using hashes here.

File details

Details for the file elastic_apm_falcon-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: elastic_apm_falcon-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0b2 CPython/3.9.13 Linux/5.13.0-1031-azure

File hashes

Hashes for elastic_apm_falcon-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b2768cee95a9792506ae8522ff0de912bd8f930280a2e35705549cf86362ac74
MD5 bfec6c9d61e54f21a8645d53465f7123
BLAKE2b-256 b6deb86fcd6d160daa3ec02d238579bd74a5285d3ca7f123cf6e9fb7188da7f3

See more details on using hashes here.

Supported by

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