@ -67,7 +67,7 @@ class DefaultHttpRequestsObservationConventionTests {
. contains ( KeyValue . of ( "method" , "POST" ) , KeyValue . of ( "uri" , "UNKNOWN" ) , KeyValue . of ( "status" , "201" ) ,
. contains ( KeyValue . of ( "method" , "POST" ) , KeyValue . of ( "uri" , "UNKNOWN" ) , KeyValue . of ( "status" , "201" ) ,
KeyValue . of ( "exception" , "none" ) , KeyValue . of ( "outcome" , "SUCCESS" ) ) ;
KeyValue . of ( "exception" , "none" ) , KeyValue . of ( "outcome" , "SUCCESS" ) ) ;
assertThat ( this . convention . getHighCardinalityKeyValues ( context ) ) . hasSize ( 1 )
assertThat ( this . convention . getHighCardinalityKeyValues ( context ) ) . hasSize ( 1 )
. contains ( KeyValue . of ( "uri.expanded " , "/test/resource" ) ) ;
. contains ( KeyValue . of ( "http.url " , "/test/resource" ) ) ;
}
}
@Test
@Test
@ -82,7 +82,7 @@ class DefaultHttpRequestsObservationConventionTests {
. contains ( KeyValue . of ( "method" , "GET" ) , KeyValue . of ( "uri" , "/test/{name}" ) , KeyValue . of ( "status" , "200" ) ,
. contains ( KeyValue . of ( "method" , "GET" ) , KeyValue . of ( "uri" , "/test/{name}" ) , KeyValue . of ( "status" , "200" ) ,
KeyValue . of ( "exception" , "none" ) , KeyValue . of ( "outcome" , "SUCCESS" ) ) ;
KeyValue . of ( "exception" , "none" ) , KeyValue . of ( "outcome" , "SUCCESS" ) ) ;
assertThat ( this . convention . getHighCardinalityKeyValues ( context ) ) . hasSize ( 1 )
assertThat ( this . convention . getHighCardinalityKeyValues ( context ) ) . hasSize ( 1 )
. contains ( KeyValue . of ( "uri.expanded " , "/test/resource" ) ) ;
. contains ( KeyValue . of ( "http.url " , "/test/resource" ) ) ;
}
}
@ -97,7 +97,7 @@ class DefaultHttpRequestsObservationConventionTests {
. contains ( KeyValue . of ( "method" , "GET" ) , KeyValue . of ( "uri" , "UNKNOWN" ) , KeyValue . of ( "status" , "500" ) ,
. contains ( KeyValue . of ( "method" , "GET" ) , KeyValue . of ( "uri" , "UNKNOWN" ) , KeyValue . of ( "status" , "500" ) ,
KeyValue . of ( "exception" , "IllegalArgumentException" ) , KeyValue . of ( "outcome" , "SERVER_ERROR" ) ) ;
KeyValue . of ( "exception" , "IllegalArgumentException" ) , KeyValue . of ( "outcome" , "SERVER_ERROR" ) ) ;
assertThat ( this . convention . getHighCardinalityKeyValues ( context ) ) . hasSize ( 1 )
assertThat ( this . convention . getHighCardinalityKeyValues ( context ) ) . hasSize ( 1 )
. contains ( KeyValue . of ( "uri.expanded " , "/test/resource" ) ) ;
. contains ( KeyValue . of ( "http.url " , "/test/resource" ) ) ;
}
}
@Test
@Test
@ -111,7 +111,7 @@ class DefaultHttpRequestsObservationConventionTests {
. contains ( KeyValue . of ( "method" , "GET" ) , KeyValue . of ( "uri" , "REDIRECTION" ) , KeyValue . of ( "status" , "302" ) ,
. contains ( KeyValue . of ( "method" , "GET" ) , KeyValue . of ( "uri" , "REDIRECTION" ) , KeyValue . of ( "status" , "302" ) ,
KeyValue . of ( "exception" , "none" ) , KeyValue . of ( "outcome" , "REDIRECTION" ) ) ;
KeyValue . of ( "exception" , "none" ) , KeyValue . of ( "outcome" , "REDIRECTION" ) ) ;
assertThat ( this . convention . getHighCardinalityKeyValues ( context ) ) . hasSize ( 1 )
assertThat ( this . convention . getHighCardinalityKeyValues ( context ) ) . hasSize ( 1 )
. contains ( KeyValue . of ( "uri.expanded " , "/test/redirect" ) ) ;
. contains ( KeyValue . of ( "http.url " , "/test/redirect" ) ) ;
}
}
@Test
@Test
@ -124,7 +124,7 @@ class DefaultHttpRequestsObservationConventionTests {
. contains ( KeyValue . of ( "method" , "GET" ) , KeyValue . of ( "uri" , "NOT_FOUND" ) , KeyValue . of ( "status" , "404" ) ,
. contains ( KeyValue . of ( "method" , "GET" ) , KeyValue . of ( "uri" , "NOT_FOUND" ) , KeyValue . of ( "status" , "404" ) ,
KeyValue . of ( "exception" , "none" ) , KeyValue . of ( "outcome" , "CLIENT_ERROR" ) ) ;
KeyValue . of ( "exception" , "none" ) , KeyValue . of ( "outcome" , "CLIENT_ERROR" ) ) ;
assertThat ( this . convention . getHighCardinalityKeyValues ( context ) ) . hasSize ( 1 )
assertThat ( this . convention . getHighCardinalityKeyValues ( context ) ) . hasSize ( 1 )
. contains ( KeyValue . of ( "uri.expanded " , "/test/notFound" ) ) ;
. contains ( KeyValue . of ( "http.url " , "/test/notFound" ) ) ;
}
}
@Test
@Test
@ -138,7 +138,7 @@ class DefaultHttpRequestsObservationConventionTests {
. contains ( KeyValue . of ( "method" , "GET" ) , KeyValue . of ( "uri" , "UNKNOWN" ) , KeyValue . of ( "status" , "UNKNOWN" ) ,
. contains ( KeyValue . of ( "method" , "GET" ) , KeyValue . of ( "uri" , "UNKNOWN" ) , KeyValue . of ( "status" , "UNKNOWN" ) ,
KeyValue . of ( "exception" , "none" ) , KeyValue . of ( "outcome" , "UNKNOWN" ) ) ;
KeyValue . of ( "exception" , "none" ) , KeyValue . of ( "outcome" , "UNKNOWN" ) ) ;
assertThat ( this . convention . getHighCardinalityKeyValues ( context ) ) . hasSize ( 1 )
assertThat ( this . convention . getHighCardinalityKeyValues ( context ) ) . hasSize ( 1 )
. contains ( KeyValue . of ( "uri.expanded " , "/test/resource" ) ) ;
. contains ( KeyValue . of ( "http.url " , "/test/resource" ) ) ;
}
}
private static PathPattern getPathPattern ( String pattern ) {
private static PathPattern getPathPattern ( String pattern ) {