public class CozeLoopContext extends Object implements io.opentelemetry.context.Context
This class provides a way to work with trace context without directly exposing OpenTelemetry APIs.
| Constructor and Description |
|---|
CozeLoopContext(io.opentelemetry.context.Context context)
Create a new CozeLoopContext wrapping an OpenTelemetry Context.
|
| Modifier and Type | Method and Description |
|---|---|
static CozeLoopContext |
current()
Get the current context from thread-local storage.
|
<V> V |
get(io.opentelemetry.context.ContextKey<V> contextKey) |
<V> io.opentelemetry.context.Context |
with(io.opentelemetry.context.ContextKey<V> contextKey,
V v) |
public CozeLoopContext(io.opentelemetry.context.Context context)
context - the underlying OpenTelemetry contextpublic static CozeLoopContext current()
current in interface io.opentelemetry.context.Context@Nullable public <V> V get(io.opentelemetry.context.ContextKey<V> contextKey)
get in interface io.opentelemetry.context.Contextpublic <V> io.opentelemetry.context.Context with(io.opentelemetry.context.ContextKey<V> contextKey,
V v)
with in interface io.opentelemetry.context.ContextCopyright © 2026. All rights reserved.