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 2020/06/16 11:23:45 UTC

[GitHub] [skywalking] chestarss edited a comment on issue #4934: skywalking-python startup with django not working

chestarss edited a comment on issue #4934:
URL: https://github.com/apache/skywalking/issues/4934#issuecomment-644702151


   I can use it after temporarily using this fix. I don’t know what the reason is that the _thread_local.context assignment in the code above the file did not take effect.
    skywalking/trace/context/__init__.py 
   ```python
   def get_context() -> SpanContext:
       try:
           tmp_context = _thread_local.context
       except:
           tmp_context = None
       _thread_local.context = tmp_context or (SpanContext() if agent.connected() else NoopContext())
   ```


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