Skip to content

Commit

Permalink
#29711 adding first collectors
Browse files Browse the repository at this point in the history
  • Loading branch information
jdotcms committed Aug 29, 2024
1 parent b8ac5d5 commit 9d3eb11
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ public boolean test(CollectorContextMap collectorContextMap) {
public CollectorPayloadBean collect(final CollectorContextMap collectorContextMap,
final CollectorPayloadBean collectorPayloadBean) {

String requestId = (String)collectorContextMap.get("requestId");
Long time = (Long)collectorContextMap.get("time");
String clusterId = (String)collectorContextMap.get("cluster");
String serverId = (String)collectorContextMap.get("server");
Boolean sessionId = (Boolean)collectorContextMap.get("session");
Boolean sessionNew = (Boolean)collectorContextMap.get("sessionNew");

collectorPayloadBean.put("requestId", requestId);
collectorPayloadBean.put("timestamp",
FunctionUtils.getOrDefault(Objects.nonNull(time), ()->time,System::currentTimeMillis));
collectorPayloadBean.put("cluster",
Expand Down

0 comments on commit 9d3eb11

Please sign in to comment.