def METHOD_NAME(instrument, elasticapm_client):
    query_string = """
    mutation {
      createPost(text: "Try this out") {
        result {
          __typename
        }
      }
    }
    """
    schema = graphene.Schema(query=Query, mutation=Mutations)
    elasticapm_client.begin_transaction("transaction.test")
    with capture_span("test_graphene", "test"):
        result = schema.execute(query_string)
        assert not result.errors
        assert result.data["createPost"]["result"]["__typename"] == "Success"
    elasticapm_client.end_transaction("BillingView")
    transactions = elasticapm_client.events[TRANSACTION]
    spans = elasticapm_client.spans_for_transaction(transactions[0])
    expected_signatures = {
        "GraphQL.mutation createPost",
        "GraphQL.mutation result",
        "test_graphene",
    }
    assert {t["name"] for t in spans} == expected_signatures
    assert transactions[0]["name"] == "GraphQL MUTATION createPost"