lrhkobe opened a new pull request, #952:
URL: https://github.com/apache/incubator-eventmesh/pull/952
Fixes ISSUE #946 .
### Motivation
- The current trace implementation is relatively simple ,may not general
enough for other specific trace plugin implementations.
### Modifications
- Adjust eventmesh-trace-api,which is based on opentelemetry-api
```
public interface EventMeshTraceService {
void init() throws TraceException;
//extract attr from carrier to context
Context extractFrom(Context context, Map<String, Object> carrier) throws
TraceException;
//inject attr from context to carrier
void inject(Context context, Map<String, Object> carrier);
Span createSpan(String spanName, SpanKind spanKind, long startTimestamp,
TimeUnit timeUnit,
Context context, boolean isSpanFinishInOtherThread)
throws TraceException;
Span createSpan(String spanName, SpanKind spanKind, Context context,
boolean isSpanFinishInOtherThread) throws TraceException;
void shutdown() throws TraceException;
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]