[
https://issues.apache.org/jira/browse/SCB-1197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
liubao closed SCB-1197.
-----------------------
Resolution: Won't Fix
> 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: Jimin Wu
> Priority: Major
>
> [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
(v8.20.10#820010)