Skip to content

Commit 99d3c7b

Browse files
author
Emanuele Palazzetti
authored
Merge pull request #471 from alex.charrier/missing-app-type
[requests] adding missing app_type and app name to pin
2 parents 3adc1ab + 86f7a7e commit 99d3c7b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ddtrace/contrib/requests/patch.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from .legacy import _distributed_tracing, _distributed_tracing_setter
1111
from .constants import DEFAULT_SERVICE
1212
from .connection import _wrap_request
13-
13+
from ...ext import AppTypes
1414

1515
# requests default settings
1616
config._add('requests',{
@@ -29,6 +29,8 @@ def patch():
2929
_w('requests', 'Session.request', _wrap_request)
3030
Pin(
3131
service=config.requests['service_name'],
32+
app='requests',
33+
app_type=AppTypes.web,
3234
_config=config.requests,
3335
).onto(requests.Session)
3436

0 commit comments

Comments
 (0)