Commit 5128259
committed
Improve error handling observability
- Add debug log to FlagEvalMetrics.record() catch block so metric
recording failures are visible in debug logs
- Widen Provider catch from NoClassDefFoundError to LinkageError to
cover IncompatibleClassChangeError and other classloader issues
from incompatible OTel SDK versions
- Add slf4j logger to Provider and log at error level when the
fallback catch fires1 parent 95c6fb9 commit 5128259
2 files changed
Lines changed: 6 additions & 3 deletions
File tree
- products/feature-flagging/feature-flagging-api/src/main/java/datadog/trace/api/openfeature
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
| |||
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
51 | | - | |
52 | | - | |
| 54 | + | |
| 55 | + | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| |||
0 commit comments