-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6103 from DataDog/jpbempel/change-redacted-values
Change redacted values in snapshot & log templates
- Loading branch information
Showing
8 changed files
with
65 additions
and
17 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
7 changes: 7 additions & 0 deletions
7
...t/agent-debugger/debugger-el/src/main/java/com/datadog/debugger/el/RedactedException.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,7 @@ | ||
package com.datadog.debugger.el; | ||
|
||
public class RedactedException extends EvaluationException { | ||
public RedactedException(String message, String expr) { | ||
super(message, expr); | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
...ugger/debugger-el/src/main/java/com/datadog/debugger/el/expressions/ExpressionHelper.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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
package com.datadog.debugger.el.expressions; | ||
|
||
import com.datadog.debugger.el.EvaluationException; | ||
import com.datadog.debugger.el.Expression; | ||
import com.datadog.debugger.el.PrettyPrintVisitor; | ||
import com.datadog.debugger.el.RedactedException; | ||
|
||
public class ExpressionHelper { | ||
public static void throwRedactedException(Expression<?> expr) { | ||
String strExpr = PrettyPrintVisitor.print(expr); | ||
throw new EvaluationException( | ||
throw new RedactedException( | ||
"Could not evaluate the expression because '" + strExpr + "' was redacted", strExpr); | ||
} | ||
} |
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