Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
Update index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jtl-novatec authored Apr 17, 2024
1 parent 22d9386 commit 039c923
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tutorial/content/labs/instrumentation/manual/metrics/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,11 @@ from metric_utils import create_meter

# global variables
app = Flask(__name__)

if __name__ == "__main__":
# setup metrics
meter = create_meter("app.py", "0.1")
meter = create_meter("app.py", "0.1")
```

Finally, open `app.py` and import `create_meter`.
Invoke the function inside the file's main section and assign the return value to a global variable `meter`.
Invoke the function and assign the return value to a global variable `meter`.

### create instruments to record measurements

Expand Down

0 comments on commit 039c923

Please sign in to comment.