diff --git a/sample-apps/python-auto-instrumentation-sample-app/app.py b/sample-apps/python-auto-instrumentation-sample-app/app.py index 17389dbd..bea99eba 100644 --- a/sample-apps/python-auto-instrumentation-sample-app/app.py +++ b/sample-apps/python-auto-instrumentation-sample-app/app.py @@ -17,7 +17,7 @@ from typing import Iterable from flask import Flask, request - +from opentelemetry.instrumentation.flask import FlaskInstrumentor from opentelemetry.metrics import CallbackOptions, Observation @@ -26,6 +26,7 @@ meter = metrics.get_meter(__name__) app = Flask(__name__) +FlaskInstrumentor().instrument_app(app) cfg = create_config('config.yaml')