Skip to content

Commit

Permalink
remove traceid from python code
Browse files Browse the repository at this point in the history
  • Loading branch information
unglaublicherdude committed Apr 24, 2024
1 parent 8311c9f commit 6b44fb5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions python/src/vaas/vaas.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,14 +361,12 @@ async def for_file(self, path, verdict_request_attributes=None, guid=None):
async def __upload(self, token, upload_uri, buffer_or_file, content_length):
jwt = PyJWT()
decoded_token = jwt.decode(token, options={"verify_signature": False})
trace_id = decoded_token.get("traceId")
try:
await self.httpx_client.put(
url=upload_uri,
content=buffer_or_file,
headers={
"Authorization": token,
"traceParent": trace_id,
"Content-Length": str(content_length),
},
timeout=UPLOAD_TIMEOUT,
Expand Down

0 comments on commit 6b44fb5

Please sign in to comment.