You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2021/06/14 07:26:06 UTC

[GitHub] [skywalking] ZHANG-GXJ opened a new issue #7110: Can not get value from TraceContext.getCorrelation()

ZHANG-GXJ opened a new issue #7110:
URL: https://github.com/apache/skywalking/issues/7110


   Please answer these questions before submitting your issue.
   
   - Why do you submit this issue?
   - [ ] Question or discussion
   - [ ] Bug
   - [ ] Requirement
   - [ ] Feature or performance improvement
   
   ___
   ### Question
   - What do you want to know?
   How to use TraceContext.putCorrelation() properly?
    
   
   ___
   ### Bug
   - Which version of SkyWalking, OS, and JRE?
   SkyWalking: 8.2.0
   OS: MAC 11.4
   JRE: 1.8
   - Which company or project?
   Micro service
   
   - What happened?
   I am using skywalking to track kafka message.I put the traceId into kafka header, then I get the traceId from kafka header at consumer side. Then, cause I can not get traceId by TraceContext.traceId() from consumer side. I want to put the value like this: TraceContext.putCorrelation("traceId", traceId). So that I can get traceId by TraceContext.getCorrelation("traceId"). However, the value is empty. 
   ___
   ### Requirement or improvement
   - Please describe your requirements or improvement suggestions.
   Maybe I'm missing something. Anyone can tell me a right way to achieve this? Any help will be appreciated.
   


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] ZHANG-GXJ commented on issue #7110: Can not get value from TraceContext.getCorrelation()

Posted by GitBox <gi...@apache.org>.
ZHANG-GXJ commented on issue #7110:
URL: https://github.com/apache/skywalking/issues/7110#issuecomment-859496267






-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #7110: Can not get value from TraceContext.getCorrelation()

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #7110:
URL: https://github.com/apache/skywalking/issues/7110#issuecomment-859505909


   Do you read after consumering? If not, it is not realistic to get.
   Two, the trace id is not read by this way. Don't know why you are using this.
   Your way of using is not following official document.


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] ZHANG-GXJ edited a comment on issue #7110: Can not get value from TraceContext.getCorrelation()

Posted by GitBox <gi...@apache.org>.
ZHANG-GXJ edited a comment on issue #7110:
URL: https://github.com/apache/skywalking/issues/7110#issuecomment-859496267






-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng closed issue #7110: Can not get value from TraceContext.getCorrelation()

Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #7110:
URL: https://github.com/apache/skywalking/issues/7110


   


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org