Closed sosaedison closed 1 day ago
It looks like this attribute is removed since Flask 2.4. Did this error occur after an upgrade of Flask or a newly instrumented application? If this is a new instrumentation, we recommend you to use opentelemetry instead
Closing for now, please re-open if you're still experiencing this issue.
When initializing the HoneyMiddleware in a Flask application, we get the following error:
Versions
Steps to reproduce
Create a
requirements.txt
file with these packages:Install the packages above:
python3.11 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Create
app.py
file and copy-paste the code belowload_dotenv()
flask_app = Flask(name)
def beeline_init(flask_app): API_KEY = os.getenv("BEELINE_API_KEY") DATASET = os.getenv("BEELINE_DATASET")
if name == "main": beeline_init(flask_app) flask_app.run()