Skip to content

Commit

Permalink
print
Browse files Browse the repository at this point in the history
  • Loading branch information
Giorgio Trettenero committed Dec 10, 2024
1 parent 999413c commit 5063cb9
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ public <R> R processRequest(

tags.put("request", resourceRequestName);
tags.put("scheme", MetacatContextManager.getContext().getScheme());
System.out.println("------------------------------------------------");
System.out.println(MetacatContextManager.getContext());
System.out.println("------------------------------------------------");
tags.put("caller", MetacatContextManager.getContext().getClientAppName());
registry.counter(requestCounterId.withTags(tags)).increment();

Expand Down Expand Up @@ -245,6 +248,9 @@ public <R> R processRequest(
final long start = registry.clock().wallTime();
final Map<String, String> tags = Maps.newHashMap();
tags.put("request", resourceRequestName);
System.out.println("------------------------------------------------");
System.out.println(MetacatContextManager.getContext());
System.out.println("------------------------------------------------");
tags.put("caller", MetacatContextManager.getContext().getClientAppName());
registry.counter(requestCounterId.withTags(tags)).increment();
try {
Expand Down

0 comments on commit 5063cb9

Please sign in to comment.