Skip to content

Commit e70ceea

Browse files
committed
Tweak jexl settings a bit more
1 parent 75254eb commit e70ceea

File tree

1 file changed

+6
-0
lines changed
  • instrumentation/nocode/src/main/java/com/splunk/opentelemetry/instrumentation/nocode

1 file changed

+6
-0
lines changed

instrumentation/nocode/src/main/java/com/splunk/opentelemetry/instrumentation/nocode/JexlEvaluator.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ public JexlEvaluator() {
4242
.permissions(JexlPermissions.UNRESTRICTED)
4343
// don't support ant syntax
4444
.antish(false)
45+
// This api is terribly named but false means "null deref throws exception rather than log warning"
46+
.safe(false)
47+
// We will catch our own exceptions
48+
.silent(false)
49+
// Don't assume unknown methods/variables mean "null"
50+
.strict(true)
4551
.create();
4652
}
4753

0 commit comments

Comments
 (0)