File tree 1 file changed +12
-4
lines changed
instrumentation/opentelemetry-instrumentation-httpx/tests
1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -780,9 +780,13 @@ def test_custom_tracer_provider(self):
780
780
HTTPXClientInstrumentor ().uninstrument ()
781
781
782
782
def test_response_hook (self ):
783
- response_hook_key = "async_response_hook" if asyncio .iscoroutinefunction (self .response_hook ) else "response_hook"
783
+ response_hook_key = (
784
+ "async_response_hook"
785
+ if asyncio .iscoroutinefunction (self .response_hook )
786
+ else "response_hook"
787
+ )
784
788
response_hook_kwargs = {
785
- response_hook_key : self .response_hook
789
+ response_hook_key : self .response_hook
786
790
}
787
791
HTTPXClientInstrumentor ().instrument (
788
792
tracer_provider = self .tracer_provider ,
@@ -827,9 +831,13 @@ def test_response_hook_sync_async_kwargs(self):
827
831
HTTPXClientInstrumentor ().uninstrument ()
828
832
829
833
def test_request_hook (self ):
830
- request_hook_key = "async_request_hook" if asyncio .iscoroutinefunction (self .request_hook ) else "request_hook"
834
+ request_hook_key = (
835
+ "async_request_hook"
836
+ if asyncio .iscoroutinefunction (self .request_hook )
837
+ else "request_hook"
838
+ )
831
839
request_hook_kwargs = {
832
- request_hook_key : self .request_hook
840
+ request_hook_key : self .request_hook
833
841
}
834
842
HTTPXClientInstrumentor ().instrument (
835
843
tracer_provider = self .tracer_provider ,
You can’t perform that action at this time.
0 commit comments