Skip to content

Commit b9c43ac

Browse files
committed
Add more requests
1 parent afe6346 commit b9c43ac

File tree

1 file changed

+4
-0
lines changed
  • code/function/fastapp/api/v1/endpoints

1 file changed

+4
-0
lines changed

code/function/fastapp/api/v1/endpoints/sample.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ async def post_predict(
2323
response = await client.get("https://www.bing.com")
2424
logger.info(f"Received response status code: {response.status_code}")
2525

26+
with httpx.Client() as client:
27+
response = client.get("https://www.google.com")
28+
response = httpx.get("https://www.google.de")
29+
2630
# tracer_attributes = {"http.client_ip": x_forwarded_for}
2731
# with tracer.start_as_current_span(
2832
# "dependency_span", attributes=tracer_attributes, kind=SpanKind.CLIENT

0 commit comments

Comments
 (0)