If you use the http_client parameter to configure the stripe client to use a different HTTP client,
you'll need to call the appropriate instrumentation method.
importasyncioimportosimportlogfirefromstripeimportStripeClientlogfire.configure()logfire.instrument_httpx()# for asynchronous requestsclient=StripeClient(api_key=os.getenv('STRIPE_SECRET_KEY'))asyncdefmain():withlogfire.span('list async'):awaitclient.customers.list_async()if__name__=='__main__':asyncio.run(main())
Note
If you use the http_client parameter to configure the stripe client to use a different HTTP client,
you'll need to call the appropriate instrumentation method.