|
5 | 5 | import java.util.concurrent.atomic.AtomicBoolean; |
6 | 6 |
|
7 | 7 | import org.slf4j.Logger; |
8 | | -import org.slf4j.LoggerFactory; |
9 | 8 |
|
10 | 9 | import com.coze.loop.entity.ExecuteParam; |
11 | 10 | import com.coze.loop.entity.ExecuteResult; |
|
15 | 14 | import com.coze.loop.exception.ErrorCode; |
16 | 15 | import com.coze.loop.http.HttpClient; |
17 | 16 | import com.coze.loop.internal.Constants; |
| 17 | +import com.coze.loop.internal.CozeLoopLogger; |
18 | 18 | import com.coze.loop.prompt.GetPromptParam; |
19 | 19 | import com.coze.loop.prompt.PromptProvider; |
20 | 20 | import com.coze.loop.spec.tracespec.SpanKeys; |
|
34 | 34 |
|
35 | 35 | /** Implementation of CozeLoopClient. */ |
36 | 36 | public class CozeLoopClientImpl implements CozeLoopClient { |
37 | | - private static final Logger logger = LoggerFactory.getLogger(CozeLoopClientImpl.class); |
| 37 | + private static final Logger logger = CozeLoopLogger.getLogger(CozeLoopClientImpl.class); |
38 | 38 | private static final String INSTRUMENTATION_NAME = "cozeloop-java-sdk"; |
39 | 39 | private static final String INSTRUMENTATION_VERSION = Constants.Version; |
40 | 40 |
|
@@ -137,7 +137,12 @@ public CozeLoopSpan startSpan( |
137 | 137 | Scope scope = finalContext.makeCurrent(); |
138 | 138 |
|
139 | 139 | return new CozeLoopSpan( |
140 | | - span, scope, tracerProvider.getPropagators(), new CozeLoopContext(finalContext), scene); |
| 140 | + span, |
| 141 | + scope, |
| 142 | + tracerProvider.getPropagators(), |
| 143 | + new CozeLoopContext(finalContext), |
| 144 | + scene, |
| 145 | + tracerProvider.getFinishEventProcessor()); |
141 | 146 | } |
142 | 147 |
|
143 | 148 | @Override |
|
0 commit comments