Skip to content

Commit

Permalink
sanic: use the lightweight sanic_testing
Browse files Browse the repository at this point in the history
Signed-off-by: Varsha GS <varsha.gs@ibm.com>
  • Loading branch information
Varsha GS committed Sep 11, 2024
1 parent b4968d0 commit 009c180
Show file tree
Hide file tree
Showing 7 changed files with 258 additions and 245 deletions.
8 changes: 2 additions & 6 deletions src/instana/instrumentation/sanic_inst.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,8 @@
from instana.util.traceutils import extract_custom_headers
from instana.propagators.format import Format

if hasattr(sanic.request, "types"):
from sanic.request.types import Request
from sanic.response.types import HTTPResponse
else:
from sanic.request import Request
from sanic.response import HTTPResponse
from sanic.request import Request
from sanic.response import HTTPResponse

@wrapt.patch_function_wrapper("sanic.app", "Sanic.__init__")
def init_with_instana(
Expand Down
30 changes: 0 additions & 30 deletions tests/apps/sanic_app/__init__.py

This file was deleted.

Loading

0 comments on commit 009c180

Please sign in to comment.