-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
078e17c
commit 98f0397
Showing
16 changed files
with
186 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
telemetry-interface/src/main/java/scala/meta/internal/telemetry/CrashReport.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package scala.meta.internal.telemetry; | ||
|
||
import java.util.Optional; | ||
|
||
public class CrashReport { | ||
final private ExceptionSummary error; | ||
final private String componentName; | ||
final private Environment env; | ||
final private Optional<String> componentVersion; | ||
final private Optional<ReporterContextUnion> reporterContext; | ||
|
||
public CrashReport(ExceptionSummary error, String componentName, Optional<String> componentVersion, | ||
Optional<ReporterContextUnion> reporterContext) { | ||
this(error, componentName, Environment.get(), componentVersion, reporterContext); | ||
} | ||
|
||
public CrashReport(ExceptionSummary error, String componentName, Environment env, Optional<String> componentVersion, | ||
Optional<ReporterContextUnion> reporterContext) { | ||
this.error = error; | ||
this.componentName = componentName; | ||
this.env = env; | ||
this.componentVersion = componentVersion; | ||
this.reporterContext = reporterContext; | ||
} | ||
|
||
public ExceptionSummary getError() { | ||
return error; | ||
} | ||
|
||
public String getComponentName() { | ||
return componentName; | ||
} | ||
|
||
public Optional<String> getComponentVersion() { | ||
return componentVersion; | ||
} | ||
|
||
public Optional<ReporterContextUnion> getReporterContext() { | ||
return reporterContext; | ||
} | ||
|
||
public Environment getEnv() { | ||
return env; | ||
} | ||
|
||
} |
24 changes: 16 additions & 8 deletions
24
telemetry-interface/src/main/java/scala/meta/internal/telemetry/Environment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.