Skip to content

Commit

Permalink
Merge pull request #887 from humivo/FixPythonAuto
Browse files Browse the repository at this point in the history
Add Flask instrumentation explicitly in Python Auto Instrumentation
  • Loading branch information
vasireddy99 authored Dec 14, 2023
2 parents 9f10565 + dc8182c commit 5e98c66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sample-apps/python-auto-instrumentation-sample-app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

from typing import Iterable
from flask import Flask, request

from opentelemetry.instrumentation.flask import FlaskInstrumentor

from opentelemetry.metrics import CallbackOptions, Observation

Expand All @@ -26,6 +26,7 @@
meter = metrics.get_meter(__name__)

app = Flask(__name__)
FlaskInstrumentor().instrument_app(app)

cfg = create_config('config.yaml')

Expand Down

0 comments on commit 5e98c66

Please sign in to comment.