mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-22 08:58:04 +01:00
Add request path and user agent to unhandled exception logging
This commit is contained in:
@@ -124,18 +124,6 @@ public class MetricsRequestEventListenerTest {
|
||||
// assertTrue(tags.contains(Tag.of(UserAgentTagUtil.VERSION_TAG, "4.53.7")));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetPathTemplate() {
|
||||
final UriTemplate firstComponent = new UriTemplate("/first");
|
||||
final UriTemplate secondComponent = new UriTemplate("/second");
|
||||
final UriTemplate thirdComponent = new UriTemplate("/{param}/{moreDifferentParam}");
|
||||
|
||||
final ExtendedUriInfo uriInfo = mock(ExtendedUriInfo.class);
|
||||
when(uriInfo.getMatchedTemplates()).thenReturn(Arrays.asList(thirdComponent, secondComponent, firstComponent));
|
||||
|
||||
assertEquals("/first/second/{param}/{moreDifferentParam}", MetricsRequestEventListener.getPathTemplate(uriInfo));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testActualRouteMessageSuccess() throws InvalidProtocolBufferException {
|
||||
MetricsApplicationEventListener applicationEventListener = mock(MetricsApplicationEventListener.class);
|
||||
|
||||
Reference in New Issue
Block a user