-
Notifications
You must be signed in to change notification settings - Fork 906
Open
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is neededinstrumentation
Description
I put the stack trace, my poetry file, and an example python script. but after instrumenting urllib3 boto3 does not work.
https://gist.github.com/camerondavison/010b2cad69dd4bf307a77fa1f0b2549e
It looks like
Traceback (most recent call last):
File "/Users/cameron/Library/Caches/pypoetry/virtualenvs/instrument-play-SYEDf4cJ-py3.9/lib/python3.9/site-packages/botocore/httpsession.py", line 448, in send
urllib_response = conn.urlopen(
File "/Users/cameron/Library/Caches/pypoetry/virtualenvs/instrument-play-SYEDf4cJ-py3.9/lib/python3.9/site-packages/opentelemetry/instrumentation/urllib3/__init__.py", line 214, in instrumented_urlopen
request_size = 0 if body is None else len(body)
TypeError: object of type '_io.BytesIO' has no len()
we just need to look at the body and call a different method for length if it is a BytesIO
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is neededinstrumentation