Skip to content

Commit 6b06283

Browse files
fix type
1 parent 8d5a391 commit 6b06283

File tree

1 file changed

+1
-1
lines changed
  • instrumentation/opentelemetry-instrumentation-flask/src/opentelemetry/instrumentation/flask

1 file changed

+1
-1
lines changed

instrumentation/opentelemetry-instrumentation-flask/src/opentelemetry/instrumentation/flask/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def response_hook(span: Span, status: str, response_headers: List):
275275
def _request_ctx_ref() -> weakref.ReferenceType:
276276
return weakref.ref(flask.globals.request_ctx._get_current_object())
277277
else:
278-
def _request_ctx_ref() -> int:
278+
def _request_ctx_ref() -> weakref.ReferenceType:
279279
return weakref.ref(flask._request_ctx_stack.top)
280280

281281
def get_default_span_name():

0 commit comments

Comments
 (0)