Commit 2000f0b
Force JNI path for context writes in OTEL mode
On Java < 17, ThreadContext.put() uses the ByteBuffer path which writes
directly to the Context struct, bypassing ContextApi::set(). In OTEL
mode this means the OTEP record is never written. Fix: always use
setContext0 JNI when otelMode is active.
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>1 parent 41b7b5c commit 2000f0b
1 file changed
Lines changed: 3 additions & 1 deletion
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
160 | 162 | | |
161 | 163 | | |
162 | 164 | | |
| |||
0 commit comments