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.
- Install the package:
pip install opentelemetry-instrumentation-flask
- 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
Release history Release notifications | RSS feed
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
Close
Hashes for opentelemetry-instrumentation-digma-flask-0.2.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76483fa92dd974cacfb3b0cb74814fe3be7bce7f220132f2f3ec421034757d58 |
|
MD5 | 02a2f2a66e4f6450aecea247a4b984cf |
|
BLAKE2b-256 | b86e1c967101d49dc1a34d98e5c76a838f0d3efc087d727abc0a36183d94cd83 |
Close
Hashes for opentelemetry_instrumentation_digma_flask-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7792a7fd5ed537a73eea813a554124e3eec28aaf6d5940d6c604e018c68c3798 |
|
MD5 | fa492838db050ec293c765a65c8738db |
|
BLAKE2b-256 | a9590e3f082cd399fb76c10f31b320ddb5c13c03bf83ec9c41016e75d1a50cbd |