File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
services/payments/src/simcore_service_payments/services Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 2525 HealthMixinMixin ,
2626)
2727from servicelib .fastapi .httpx_utils import to_curl_command
28+ from servicelib .fastapi .tracing import setup_httpx_client_tracing
2829from simcore_service_payments .models .schemas .acknowledgements import (
2930 AckPaymentWithPaymentMethod ,
3031)
@@ -216,5 +217,7 @@ def setup_payments_gateway(app: FastAPI):
216217 secret = settings .PAYMENTS_GATEWAY_API_SECRET .get_secret_value ()
217218 ),
218219 )
220+ if settings .PAYMENTS_TRACING :
221+ setup_httpx_client_tracing (api .client )
219222 api .attach_lifespan_to (app )
220223 api .set_to_app_state (app )
Original file line number Diff line number Diff line change 2525 BaseHTTPApi ,
2626 HealthMixinMixin ,
2727)
28+ from servicelib .fastapi .tracing import setup_httpx_client_tracing
2829
2930from ..core .settings import ApplicationSettings
3031
@@ -73,5 +74,7 @@ def setup_resource_usage_tracker(app: FastAPI):
7374 api = ResourceUsageTrackerApi .from_client_kwargs (
7475 base_url = settings .PAYMENTS_RESOURCE_USAGE_TRACKER .base_url ,
7576 )
77+ if settings .PAYMENTS_TRACING :
78+ setup_httpx_client_tracing (api .client )
7679 api .set_to_app_state (app )
7780 api .attach_lifespan_to (app )
Original file line number Diff line number Diff line change 1919 BaseHTTPApi ,
2020 HealthMixinMixin ,
2121)
22+ from servicelib .fastapi .tracing import setup_httpx_client_tracing
2223
2324from ..core .errors import StripeRuntimeError
2425from ..core .settings import ApplicationSettings
@@ -91,6 +92,8 @@ def setup_stripe(app: FastAPI):
9192 base_url = settings .PAYMENTS_STRIPE_URL ,
9293 auth = _StripeBearerAuth (settings .PAYMENTS_STRIPE_API_SECRET .get_secret_value ()),
9394 )
95+ if settings .PAYMENTS_TRACING :
96+ setup_httpx_client_tracing (api .client )
9497
9598 api .set_to_app_state (app )
9699 api .attach_lifespan_to (app )
You can’t perform that action at this time.
0 commit comments