Skip to main content

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.

Release files for elastic-apm-falcon 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for elastic-apm-falcon 1.0.1
File Size Uploaded
elastic-apm-falcon-1.0.1.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for elastic-apm-falcon 1.0.1
File Interpreter ABI Platform
elastic_apm_falcon-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.5 kB

Release files / elastic-apm-falcon-1.0.1.tar.gz

Download URL elastic-apm-falcon-1.0.1.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0aa44d87569ecaf226b1364a54e520dc1b75ada01d4fb24f894882f9ec1ceee9
BLAKE2b-256 checksum
How to use checksums
eed95545056698d4ea054fcd9a0be88c3d669415fc53ba512776279bacc90291
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.0b2 CPython/3.9.13 Linux/5.13.0-1031-azure

Release files / elastic_apm_falcon-1.0.1-py3-none-any.whl

Download URL elastic_apm_falcon-1.0.1-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b2768cee95a9792506ae8522ff0de912bd8f930280a2e35705549cf86362ac74
BLAKE2b-256 checksum
How to use checksums
b6deb86fcd6d160daa3ec02d238579bd74a5285d3ca7f123cf6e9fb7188da7f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.0b2 CPython/3.9.13 Linux/5.13.0-1031-azure

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page