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
File details
Details for the file opentelemetry-instrumentation-digma-flask-0.2.2.tar.gz
.
File metadata
- Download URL: opentelemetry-instrumentation-digma-flask-0.2.2.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76483fa92dd974cacfb3b0cb74814fe3be7bce7f220132f2f3ec421034757d58 |
|
MD5 | 02a2f2a66e4f6450aecea247a4b984cf |
|
BLAKE2b-256 | b86e1c967101d49dc1a34d98e5c76a838f0d3efc087d727abc0a36183d94cd83 |
File details
Details for the file opentelemetry_instrumentation_digma_flask-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: opentelemetry_instrumentation_digma_flask-0.2.2-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7792a7fd5ed537a73eea813a554124e3eec28aaf6d5940d6c604e018c68c3798 |
|
MD5 | fa492838db050ec293c765a65c8738db |
|
BLAKE2b-256 | a9590e3f082cd399fb76c10f31b320ddb5c13c03bf83ec9c41016e75d1a50cbd |