Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.continue.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ instrumentation_modules: &instrumentation_modules "dd-java-agent/instrumentation
debugger_modules: &debugger_modules "dd-java-agent/agent-debugger|dd-java-agent/agent-bootstrap|dd-java-agent/agent-builder|internal-api|communication|dd-trace-core"
profiling_modules: &profiling_modules "dd-java-agent/agent-profiling"

default_system_tests_commit: &default_system_tests_commit 8b05076e897fe62206d7704f2e8e650ed83ebd1f
default_system_tests_commit: &default_system_tests_commit c706e333ef06800b866ac300e4b6cdb7566cc5e5

parameters:
nightly:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,13 @@ private static void processSnapshotsAndSetTags(
String tagName = String.format(SNAPSHOT_ID_TAG_FMT, frameIndex);
span.setTag(tagName, snapshot.getId());
LOGGER.debug("add tag to span[{}]: {}: {}", span.getSpanId(), tagName, snapshot.getId());
DebuggerAgent.getSink().addSnapshot(snapshot);
if (!state.isSnapshotSent()) {
DebuggerAgent.getSink().addSnapshot(snapshot);
}
snapshotAssigned = true;
}
if (snapshotAssigned) {
state.markAsSnapshotSent();
span.setTag(DD_DEBUG_ERROR_EXCEPTION_ID, state.getExceptionId());
LOGGER.debug(
"add tag to span[{}]: {}: {}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ boolean hasExceptionStateTracked() {
public static class ThrowableState {
private final String exceptionId;
private List<Snapshot> snapshots;
private boolean snapshotSent;

private ThrowableState(String exceptionId) {
this.exceptionId = exceptionId;
Expand All @@ -206,5 +207,13 @@ public void addSnapshot(Snapshot snapshot) {
}
snapshots.add(snapshot);
}

public boolean isSnapshotSent() {
return snapshotSent;
}

public void markAsSnapshotSent() {
snapshotSent = true;
}
}
}
Loading