You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "wujimin (JIRA)" <ji...@apache.org> on 2019/03/13 14:01:00 UTC
[jira] [Created] (SCB-1197) enhance provider tracing handler to
inherit spans from http header
wujimin created SCB-1197:
----------------------------
Summary: enhance provider tracing handler to inherit spans from http header
Key: SCB-1197
URL: https://issues.apache.org/jira/browse/SCB-1197
Project: Apache ServiceComb
Issue Type: Task
Components: Java-Chassis
Reporter: wujimin
[https://github.com/apache/servicecomb-java-chassis/issues/1116]
currently we already inherit traceId from http header in: org.apache.servicecomb.core.Invocation#initTraceId(org.apache.servicecomb.core.tracing.TraceIdGenerator)
to inherit spans from http header we need to change:
org.apache.servicecomb.tracing.zipkin.ZipkinProviderDelegate#INVOCATION_STRING_GETTER, (if key is SPAN_ID_HEADER_NAME)
# try to get from invocation.context, if already exists then return directly
# if invocation.requestEx is no null, try to get from http header
# if still can not get spanId, then make spanId equals traceId
maybe this is enough, but i'm not sure, need to test.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)