public void markObscured(Object o) { ObscuredValueRegistry registry = builder.getHint(FrameBuilder.HINT_OBSCURED_REGISTRY, ObscuredValueRegistry.class); if (registry == null) { registry = new SimpleObscuredValueRegistry(); builder.setHint(FrameBuilder.HINT_OBSCURED_REGISTRY, registry); } registry.markObscured(o); } }
@Override // if ANY remote invocation failed, then declare the trace an error public Collection<Frame> locateFrames(Trace trace) { return trace.getAllFramesOfType(HttpInvokerRequestExecutorExternalResourceAnalyzer.HTTP_INVOKER); } }
@Override public TraceError locateFrameError(Frame frame) { Operation op = frame.getOperation(); return new TraceError(op.getLabel()); } }
public DuplicateTraceException(Trace trace) { super("Unable to add a trace which has already been added (app=" + trace.getAppName() + ", traceId=" + trace.getId() + ")"); appName = trace.getAppName(); traceId = trace.getId(); }
protected void updateParentReference (Frame frame) { Collection<? extends Frame> children=frame.getChildren(); if (ListUtil.size(children) > 0) { for (Frame child : children) { if (child instanceof SimpleFrame) { ((SimpleFrame) child).setParent(frame); } updateParentReference(child); } } } }
public TraceId getTraceId() { return TraceId.valueOf(traceId); }
public PersistedTrace(TraceId id, Time timestampValue, byte[] traceBytes) { this.traceId = id.toString(); this.timestamp = timestampValue; this.bytes = traceBytes; }
private Operation workingOperation() { return builder.peek(); }
@SuppressWarnings("unchecked") static LinkedList<StopWatchHolder> getStopWatchStack(FrameBuilder builder) { return builder.getHint(COUNTER_STACK_HINT, LinkedList.class); }
public TraceReport(TraceInterface traceAccess) { this((traceAccess == null) ? null /* cause exception */ : traceAccess.asTrace(), traceAccess); }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((id == null) ? 0 : id.hashCode()); return result; }
public boolean isTraceSourceAnalysisRequired() { return trace.isTraceSourceAnalysisRequired(); } }
@Override // if ANY invocation was an error then declare a trace error public Collection<Frame> locateFrames(Trace trace) { return trace.getAllFramesOfType(ClientHttpRequestOperationCollector.TYPE); }
public TraceId getTraceId() { return TraceId.valueOf(traceIdStr); }
@SuppressWarnings("unchecked") static Map<OperationType, CounterHolder> getCounterMap(FrameBuilder builder) { return builder.getHint(COUNTER_MAP_HINT, Map.class); }
public Trace getTrace() { return (trace == null) ? null : trace.asTrace(); }
@Override // if ANY invocation was an error then declare a trace error public Collection<Frame> locateFrames(Trace trace) { return trace.getAllFramesOfType(HttpClientDefinitions.TYPE); }
public TraceId getTraceId() { return TraceId.valueOf(traceId); }
@Override // if ANY invocation was an error then declare a trace error public Collection<Frame> locateFrames(Trace trace) { return trace.getAllFramesOfType(HttpClientDefinitions.TYPE); }