Log http block request body, make azure blob key parameterizable (#3300)

Co-authored-by: Suchintan Singh <suchintan@skyvern.com>
This commit is contained in:
Suchintan
2025-08-25 17:36:29 -04:00
committed by GitHub
parent e64c47279f
commit 1167765867
8 changed files with 69 additions and 61 deletions

View File

@@ -3208,8 +3208,8 @@ class HttpRequestBlock(Block):
method=self.method,
url=self.url,
headers=self.headers,
has_body=bool(self.body),
workflow_run_id=workflow_run_id,
body=self.body,
)
# Use the generic aiohttp_request function
@@ -3223,7 +3223,16 @@ class HttpRequestBlock(Block):
)
response_data = {
# Response information
"status_code": status_code,
"response_headers": response_headers,
"response_body": response_body,
# Request information (what was sent)
"request_method": self.method,
"request_url": self.url,
"request_headers": self.headers,
"request_body": self.body,
# Backwards compatibility
"headers": response_headers,
"body": response_body,
"url": self.url,