<div dir="auto">I suppose I'm just not sure what feedback to give beyond it works like I thought it would. I've been using it in one of our high traffic APIs since java 21. Currently the service is on JDK 24 and I haven't noticed any problems with the preceding java versions either.<div dir="auto"><br></div><div dir="auto">I use it to store request data that would otherwise be put in an MDC context. I then have a custom logback encoder which extracts the values and put them into the json log statement.</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, Apr 15, 2025, 10:16 AM David Alayachew <<a href="mailto:davidalayachew@gmail.com">davidalayachew@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><p dir="ltr">Correct</p></div>
<br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 15, 2025, 8:59 AM Davor Hrg <<a href="mailto:hrgdavor@gmail.com" rel="noreferrer noreferrer" target="_blank">hrgdavor@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Am I reading this correctly?<div><br></div><div>Does this mean Scoped Values will be fully available (not hidden behind the preview flag) in Java 25 ?</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 14, 2025 at 9:43 PM Mark Reinhold <<a href="mailto:mark.reinhold@oracle.com" rel="noreferrer noreferrer noreferrer" target="_blank">mark.reinhold@oracle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><a href="https://openjdk.org/jeps/506" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://openjdk.org/jeps/506</a><br>
<br>
  Summary: Introduce scoped values, which enable a method to share<br>
  immutable data both with its callees within a thread, and with child<br>
  threads.  Scoped values are easier to reason about than thread-local<br>
  variables.  They also have lower space and time costs, especially when<br>
  used together with virtual threads (JEP 444) and structured concurrency<br>
  (JEP 505).<br>
<br>
- Mark</blockquote></div>
</blockquote></div>
</blockquote></div>