Skip to content

Commit

Permalink
Updating Trace Provider for Flask Instrumentor #2378
Browse files Browse the repository at this point in the history
  • Loading branch information
kvnthomas98 committed Sep 24, 2024
1 parent 5fcd1a2 commit 56cfc71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def instrument(app, host, port):
)
# trace.get_tracer_provider().get_tracer(__name__)
tracer_provider = trace.get_tracer(__name__)
FlaskInstrumentor().instrument_app(app=app.app)
FlaskInstrumentor().instrument_app(app=app.app, tracer_provider=trace)
RequestsInstrumentor().instrument()
AioHttpClientInstrumentor().instrument()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def instrument(app, host, port):
# tracer_provider.get_tracer(__name__)
tracer_provider = trace.get_tracer(__name__)

FlaskInstrumentor().instrument_app(app=app.app)
FlaskInstrumentor().instrument_app(app=app.app, tracer_provider=trace)
RequestsInstrumentor().instrument()
AioHttpClientInstrumentor().instrument()

Expand Down

0 comments on commit 56cfc71

Please sign in to comment.