Skip to content

Commit

Permalink
Fix example in documentation
Browse files Browse the repository at this point in the history
Fixes #550
  • Loading branch information
ocelotl committed Apr 4, 2020
1 parent aea6530 commit 54d42fd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 54d42fd

Please sign in to comment.