Skip to content
Neil Williams edited this page Aug 12, 2019 · 8 revisions

v1.0

make_server_span

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:
         ...
Clone this wiki locally