This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from opentelemetry.instrumentation import httpx_client as httpx_opentelemetry | |
async def main(): | |
opentelemetry_on_request, opentelemetry_on_response = httpx_opentelemetry.create_async_hooks() | |
event_hooks = { | |
"request": [opentelemetry_on_request], | |
"response": [opentelemetry_on_response] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Bayes rule, reframed as "odds" instead of "chances". | |
https://twitter.com/florimondmanca/status/1342119381573238789 | |
Inspired by 3Blue1Brown's "The medical test paradox: Can redesigning Bayes rule help?". | |
""" | |
from fractions import Fraction | |
from typing import Any |
OlderNewer