Skip to content

Commit d248eb2

Browse files
authored
Merge pull request #95 from intergral/proto_update
Proto update
2 parents 929fa4a + 3df5d5a commit d248eb2

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

agent/src/main/java/com/intergral/deep/agent/tracepoint/handler/Callback.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -497,20 +497,20 @@ public void decorate(final EventSnapshot eventSnapshot, final FrameProcessor fra
497497
if (this.throwable != null) {
498498
final List<VariableID> variableIds = frameProcessor.processVars(Collections.singletonMap("thrown", this.throwable));
499499
final Map<String, Variable> watchLookup = frameProcessor.closeLookup();
500-
eventSnapshot.addWatchResult(new WatchResult("thrown", variableIds.get(0), WatchResult.WATCH));
500+
eventSnapshot.addWatchResult(new WatchResult("thrown", variableIds.get(0), WatchResult.CAPTURE));
501501
eventSnapshot.mergeVariables(watchLookup);
502502
}
503503

504504
if (this.isSet) {
505505
final List<VariableID> variableIds = frameProcessor.processVars(Collections.singletonMap("return", this.value));
506506
final Map<String, Variable> watchLookup = frameProcessor.closeLookup();
507-
eventSnapshot.addWatchResult(new WatchResult("return", variableIds.get(0), WatchResult.WATCH));
507+
eventSnapshot.addWatchResult(new WatchResult("return", variableIds.get(0), WatchResult.CAPTURE));
508508
eventSnapshot.mergeVariables(watchLookup);
509509
}
510510

511511
final List<VariableID> variableIds = frameProcessor.processVars(Collections.singletonMap("runtime", durationNs));
512512
final Map<String, Variable> watchLookup = frameProcessor.closeLookup();
513-
eventSnapshot.addWatchResult(new WatchResult("runtime", variableIds.get(0), WatchResult.WATCH));
513+
eventSnapshot.addWatchResult(new WatchResult("runtime", variableIds.get(0), WatchResult.CAPTURE));
514514
eventSnapshot.mergeVariables(watchLookup);
515515
}
516516
}

agent/src/main/java/com/intergral/deep/agent/types/snapshot/WatchResult.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ public class WatchResult {
4343
*/
4444
public static final String LOG = "LOG";
4545

46+
/**
47+
* Watch source is CAPTURE.
48+
*
49+
* @see com.intergral.deep.proto.tracepoint.v1.WatchSource
50+
*/
51+
public static final String CAPTURE = "CAPTURE";
52+
4653
private final String error;
4754
private final VariableID result;
4855
private final String expression;

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
</modules>
8686

8787
<properties>
88-
<deep-proto.version>1.0.3</deep-proto.version>
88+
<deep-proto.version>1.0.5</deep-proto.version>
8989
<grpc.version>1.60.1</grpc.version>
9090
<netty.version>4.1.100.Final</netty.version>
9191
<tcnative.version>2.0.62.Final</tcnative.version>

0 commit comments

Comments
 (0)