Skip to content

Commit 9c8207a

Browse files
committed
now it works
1 parent 38bda82 commit 9c8207a

File tree

1 file changed

+2
-2
lines changed
  • instrumentation/opentelemetry-instrumentation-wsgi/src/opentelemetry/instrumentation/wsgi

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def response_hook(span: Span, environ: WSGIEnvironment, status: str, response_he
219219
import functools
220220
import wsgiref.util as wsgiref_util
221221
from timeit import default_timer
222-
from typing import TYPE_CHECKING, Any, Callable, Iterable, TypeVar, cast
222+
from typing import TYPE_CHECKING, Any, Callable, Dict, Iterable, TypeVar, cast
223223

224224
from opentelemetry import context, trace
225225
from opentelemetry.instrumentation._semconv import (
@@ -287,7 +287,7 @@ def response_hook(span: Span, environ: WSGIEnvironment, status: str, response_he
287287
_CARRIER_KEY_PREFIX_LEN = len(_CARRIER_KEY_PREFIX)
288288

289289

290-
class WSGIGetter(Getter[dict[str, Any]]):
290+
class WSGIGetter(Getter[Dict[str, Any]]):
291291
def get(self, carrier: dict[str, Any], key: str) -> list[str] | None:
292292
"""Getter implementation to retrieve a HTTP header value from the
293293
PEP3333-conforming WSGI environ

0 commit comments

Comments
 (0)