Skip to main content

Digma instrumentation for Flask

Project description

opentelemetry-instrumentation-digma-flask

Instrumentation package for the Flask platform adding code linkage to traces

Installing the package

pip install opentelemetry-instrumentation-digma-flask

Or add it to your requirements/poetry file.

Instrumenting your Flask project

Enable OpenTelemetry in your project

First, configure OpenTelemetry in your project. See the Digma instrumentation repo for quick instructions on getting that done, whether you're already using OTEL or not.

Make sure you've instrumented your Flask application using the standard Pypi package.

  1. Install the package: pip install opentelemetry-instrumentation-flask
  2. Instrument the Flask app by adding the following to your app setup:
FlaskInstrumentor.instrument_app(app) 

More info can be found in the official package documentation.

Enable the Digma OpenTelemetry instrumentation

After the call to FlaskInstrumentor.instrument to enable OTEL, also add the following:

DigmaFlaskInstrumentor().instrument_app(app)

Check out some sample projects

Coming soon!

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

File details

Details for the file opentelemetry-instrumentation-digma-flask-0.2.2.tar.gz.

File metadata

File hashes

Hashes for opentelemetry-instrumentation-digma-flask-0.2.2.tar.gz
Algorithm Hash digest
SHA256 76483fa92dd974cacfb3b0cb74814fe3be7bce7f220132f2f3ec421034757d58
MD5 02a2f2a66e4f6450aecea247a4b984cf
BLAKE2b-256 b86e1c967101d49dc1a34d98e5c76a838f0d3efc087d727abc0a36183d94cd83

See more details on using hashes here.

File details

Details for the file opentelemetry_instrumentation_digma_flask-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_digma_flask-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7792a7fd5ed537a73eea813a554124e3eec28aaf6d5940d6c604e018c68c3798
MD5 fa492838db050ec293c765a65c8738db
BLAKE2b-256 a9590e3f082cd399fb76c10f31b320ddb5c13c03bf83ec9c41016e75d1a50cbd

See more details on using hashes here.

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