You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: v1.rs
    path of file: ./repos/grafbase/engine/crates/integration-tests/tests/tracing
    
    the code of the file until where you have to start completion: use serde_json::json;
use tracing::Level;
use tracing_mock::{expect, subscriber};

use engine::{BatchRequest, Registry, Request, StreamingPayload};
use grafbase_tracing::span::gql::SPAN_NAME;
use integration_tests::udfs::RustUdfs;
use integration_tests::EngineBuilder;
use runtime::udf::UdfResponse;

#[tokio::test(flavor = "current_thread")]
async fn query_bad_request() {
    // prepare
    let span = expect::span().at_level(Level::INFO).named(SPAN_NAME);

    let (subscriber, handle) = subscriber::mock()
        .with_filter(|meta| meta.is_span() && meta.target() == "grafbase" && *meta.level() >= Level::INFO)
        .new_span(span.clone().with_field(expect::field("gql.document").with_value(&"")))
        .enter(span.clone())
        .clone_span(span.clone())
        .record(span.clone(), expect::field("gql.response.has_errors").with_valu
    
async fn batch() {
    // prepare
    let span = expect::span().at_level(Level::INFO).named(SPAN_NAME);

    let (subscriber, handle) = subscriber::mock()
        .with_filter(move |meta| meta.is_span() && meta.target() == "grafbase" && *meta.level() >= Level::INFO)
        // span #1
        .new_span(
            span.clone()
                .with_field(expect::field("gql.document").with_value(&"query-1")),
        )
        .enter(span.clone())
        .clone_span(span.clone())
        .record(span.clone(), expect::field("gql.response.has_errors").with_value(&true))
        .drop_span(span.clone())
        .exit(span.clone())
        .enter(span.clone())
        .exit(span.clone())
        // span #2
        .new_span(
            span.clone()
                .with_field(expect::field("gql.document").with_value(&"query-2")),
        )
        .enter(span.clone())
        .clone_span(span.clone())
        .record(span.clone(), expect::field("gql.response.has_errors").with_value(&true))
        .drop_span(span.clone())
        .exit(span.clone())
        .enter(span.clone())
        .exit(span.clone())
        .only()
        .run_with_handle();

    let _default = tracing::subscriber::set_default(subscriber);

    // act
    engine::Schema::build(Registry::new())
        .finish()
        .execute_batch(BatchRequest::Batch(vec![
            Request::new("query-1"),
            Request::new("query-2"),
        ]))
        .await;

    // assert
    handle.assert_finished();
}