@Test public void getSpanName_returns_UNKNOWN_HTTP_METHOD_when_passed_null_request() { assertThat(HttpSpanFactory.getSpanName(null)).isEqualTo("UNKNOWN_HTTP_METHOD"); }
public static @NotNull String getSpanName(@Nullable HttpServletRequest request) { String pathTemplate = determineUriPathTemplate(request); String method = (request == null) ? null : request.getMethod(); return HttpRequestTracingUtils.generateSafeSpanName(method, pathTemplate, (Integer)null); }
HttpSpanFactory { public static @NotNull String getSpanName(@Nullable HttpServletRequest request) { String pathTemplate = determineUriPathTemplate(request); String method = (request == null) ? null : request.getMethod(); return HttpRequestTracingUtils.generateSafeSpanName(method, pathTemplate, (Integer)null); } }
HttpSpanFactory { public static @NotNull String getSpanName(@Nullable HttpServletRequest request) { String pathTemplate = determineUriPathTemplate(request); String method = (request == null) ? null : request.getMethod(); return HttpRequestTracingUtils.generateSafeSpanName(method, pathTemplate, (Integer)null); } private  HttpSpanFactory(); }
HttpSpanFactory { public static @NotNull String getSpanName(@Nullable HttpServletRequest request) { String pathTemplate = determineUriPathTemplate(request); String method = (request == null) ? null : request.getMethod(); return HttpRequestTracingUtils.generateSafeSpanName(method, pathTemplate, (Integer)null); } private  HttpSpanFactory(); static Span fromHttpServletRequest(HttpServletRequest servletRequest, List<String> userIdHeaderKeys); static String getUserIdFromHttpServletRequest(HttpServletRequest servletRequest, List<String> userIdHeaderKeys); static @Nullable String determineUriPathTemplate(@Nullable HttpServletRequest request); static @NotNull String getSpanName(@Nullable HttpServletRequest request); }
HttpSpanFactory { public static @NotNull String getSpanName(@Nullable HttpServletRequest request) { String pathTemplate = determineUriPathTemplate(request); String method = (request == null) ? null : request.getMethod(); return HttpRequestTracingUtils.generateSafeSpanName(method, pathTemplate, (Integer)null); } private  HttpSpanFactory(); static Span fromHttpServletRequest(HttpServletRequest servletRequest, List<String> userIdHeaderKeys); static String getUserIdFromHttpServletRequest(HttpServletRequest servletRequest, List<String> userIdHeaderKeys); static @Nullable String determineUriPathTemplate(@Nullable HttpServletRequest request); static @NotNull String getSpanName(@Nullable HttpServletRequest request);  }