57 final var method = exchange.method();
58 final var path = exchange.path();
59 final var normalized = PathNormalizer.normalize(path);
62 Glowroot.setTransactionType(
"Web");
63 Glowroot.setTransactionName(method +
" " + normalized);
64 Glowroot.addTransactionAttribute(
"http.method", method);
65 Glowroot.addTransactionAttribute(
"http.path", path ==
null ?
"unknown" : path);
66 Glowroot.addTransactionAttribute(
"http.normalized_path", normalized);
67 }
catch (
final Throwable ignore) {
72 return next.
handle(exchange);
73 }
catch (
final Throwable t) {
75 Glowroot.addTransactionAttribute(
"error", t.getClass().getName());
76 Glowroot.addTransactionAttribute(
"error.message", t.getMessage() ==
null ?
"" : t.getMessage());
77 }
catch (
final Throwable ignore) {