python-django
python-django copied to clipboard
about RPC in django
if i want to get rpc in django, should i must use @tracing.trace() def some_view_func(request): new_request = some_http_request current_span = tracing.get_span(request) text_carrier = {} opentracing_tracer.inject(span, opentracing.Format.TEXT_MAP, text_carrier) for k, v in text_carrier.items(): request.add_header(k,v) ... # make request this function to get it?but i had a old project,i want to make its all api to get rpc, what should i do easily