diff --git a/ext/opentelemetry-ext-flask/src/opentelemetry/ext/flask/__init__.py b/ext/opentelemetry-ext-flask/src/opentelemetry/ext/flask/__init__.py index 02b0de8652e..fb12175a55d 100644 --- a/ext/opentelemetry-ext-flask/src/opentelemetry/ext/flask/__init__.py +++ b/ext/opentelemetry-ext-flask/src/opentelemetry/ext/flask/__init__.py @@ -15,11 +15,11 @@ .. code-block:: python + from opentelemetry.ext.flask import FlaskInstrumentor + FlaskInstrumentor().instrument() # This needs to be executed before importing Flask from flask import Flask - from opentelemetry.ext.flask import instrument_app app = Flask(__name__) - instrument_app(app) # This is where the magic happens. ✨ @app.route("/") def hello():