EventParser { protected void requestMatched(RequestEvent event, SpanCustomizer customizer) { ResourceMethod method = event.getContainerRequest().getUriInfo().getMatchedResourceMethod(); if (method == null) return; Invocable i = method.getInvocable(); customizer.tag(RESOURCE_CLASS, i.getHandler().getHandlerClass().getSimpleName()); customizer.tag(RESOURCE_METHOD, i.getHandlingMethod().getName()); } EventParser();  static final EventParser NOOP; static final String RESOURCE_CLASS; static final String RESOURCE_METHOD; }
@Test public void requestMatched_missingResourceMethodOk() { when(event.getContainerRequest()).thenReturn(request); when(request.getUriInfo()).thenReturn(uriInfo); eventParser.requestMatched(event, customizer); verifyNoMoreInteractions(customizer); }