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:22:03 UTC

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

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


   我临时用这个修复后可以用,不知道是什么原因文件上面的代码里的_thread_local.context赋值没有生效。
    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