def METHOD_NAME(self):
    # When there is a parent span and no custom service_name, the service name is inherited
    loader = jinja2.loaders.FileSystemLoader(TMPL_DIR)
    env = jinja2.Environment(loader=loader)
    with self.tracer.trace("parent.span", service="web"):
        t = env.get_template("template.html")
        assert t.render(name="Jinja") == "Message: Hello Jinja!"
    # tests
    spans = self.pop_spans()
    assert len(spans) == 6
    for span in spans:
        assert span.service == "web"