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

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