-
Notifications
You must be signed in to change notification settings - Fork 4
v1.0
Neil Williams edited this page Aug 12, 2019
·
8 revisions
The context parameter of make_server_span
must now inherit from RequestContext
. The easiest way to get an appropriate object for this is to call make_context_object
on your Baseplate
instance.
Before:
class MyContext: pass
def foo():
baseplate = Baseplate()
...
context = MyContext()
with baseplate.make_server_span(context, "bar") as span:
...
After:
def foo():
baseplate = Baseplate()
...
context = baseplate.make_context_object()
with baseplate.make_server_span(context, "bar") as span:
...