# Missing Flask requests?

**URL:** <https://discuss.elastic.co/t/missing-flask-requests/310881>\
**Category:** APM\
**Tags:** python\
**Created:** [July 28, 2022, 2:21pm UTC](https://discuss.elastic.co/t/missing-flask-requests/310881 "2022-07-28T14:21:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scott\_Chapman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/scott_chapman/32/108983_2.png) [@Scott\_Chapman](https://discuss.elastic.co/u/Scott_Chapman)\
**Post date:** [July 28, 2022, 2:21pm UTC](https://discuss.elastic.co/t/missing-flask-requests/310881/1 "2022-07-28T14:21:02Z")

</div>

Hi, I am trying my first Python-APM Flask example. I have pretty basic code:

```auto
# app.py
from flask import Flask  
from elasticapm.contrib.flask import ElasticAPM

app = Flask( __name__ ) # name for the Flask app (refer to output)
# running the server

APM_SERVER = 'https://localhost:8200'
app.config['ELASTIC_APM'] = {
    'SERVICE_NAME': 'ScottFlask',
    'SERVER_URL': APM_SERVER
}
apm = ElasticAPM(app)

@app.route("/", methods=['GET', 'POST', 'PUT']) # decorator
def home(): # route handler function
    # returning a response
    return "Hello World!"
app.run(debug = True) # to allow for debugging and auto-reload

```

And I am seeing general metrics getting posted, but when I hit the route with my browser, I am not seeing anything getting logged for that. And I was expecting some form of automatic instrumentation to happen.

I am running Python 3.10 and I am running 2.0.0 version of Flask. 6.10.1 of the elastic-apm, and my cluster is running 8.2

---

<div class="post-metadata">

**Author:** ![Scott\_Chapman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/scott_chapman/32/108983_2.png) [@Scott\_Chapman](https://discuss.elastic.co/u/Scott_Chapman)\
**Post date:** [July 28, 2022, 6:30pm UTC](https://discuss.elastic.co/t/missing-flask-requests/310881/2 "2022-07-28T18:30:27Z")

</div>

OK, I figured it out. I was running in debug mode. Very subtle!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 18, 2022, 2:30pm UTC](https://discuss.elastic.co/t/missing-flask-requests/310881/3 "2022-08-18T14:30:47Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
