Commit 6d152ee
authored
Be less restrictive when autoloading instrumentation libraries (#133)
* Be less restrictive when autoloading instrumentation libraries
Emit a warning through trigger_error instead of using an assert. This will allow one
to use the libraries in environments where the extension might not be available.
However in case of issues, it will be clear through logs why code might not be
instrumented
* Implement early return style1 parent ea9c0a4 commit 6d152ee
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments