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
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,15 @@ static String getFileIDFromStackFrameID(String frameID) {

public static StackTrace fromSource(Map<String, Object> source) {
String inputFrameIDs = ObjectPath.eval(PATH_FRAME_IDS, source);
if (inputFrameIDs == null) {
// If synthetic source is disabled, fallback to dotted field names.
inputFrameIDs = (String) source.get("Stacktrace.frame.ids");
}
String inputFrameTypes = ObjectPath.eval(PATH_FRAME_TYPES, source);
if (inputFrameTypes == null) {
// If synthetic source is disabled, fallback to dotted field names.
inputFrameTypes = (String) source.get("Stacktrace.frame.types");
}
int countsFrameIDs = inputFrameIDs.length() / BASE64_FRAME_ID_LENGTH;

String[] fileIDs = new String[countsFrameIDs];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,12 @@ public void onExecutableDetailsResponse(MultiGetResponse multiGetItemResponses)
if (executable.getResponse().isExists()) {
// Duplicates are expected as we query multiple indices - do a quick pre-check before we deserialize a response
if (executables.containsKey(executable.getId()) == false) {
String fileName = ObjectPath.eval(PATH_FILE_NAME, executable.getResponse().getSource());
Map<String, Object> source = executable.getResponse().getSource();
String fileName = ObjectPath.eval(PATH_FILE_NAME, source);
if (fileName == null) {
// If synthetic source is disabled, read from dotted field names.
fileName = (String) source.get("Executable.file.name");
}
if (fileName != null) {
executables.putIfAbsent(executable.getId(), fileName);
} else {
Expand Down