Skip to content

Async issues in 0.28 #2798

Open
Open
@ShovelJockey

Description

@ShovelJockey

When using the otlp crate http-proto/reqwest-client and the sdk crate with rt-tokio/experimental trace batch I need to use .with_http_client with the SpanExporterBuilder otherwise the builder fails with NoHttpClient error.

I am using:

Let span_exporter = SpanExporter:builder().with_http().with_export_config(config).build()?

Adding with_http_client(Client::builder().build().unwrap())

Prevents the error but having a look at the code I am not sure why its needed or would a make a difference over the new standard non-async setup.

I am also finding that using a BatchSpanProcessor with the Tokio runtime in tests causes the trace provider shutdown to hang indefinitely.

We are mostly happy at moving to a sync exporter but want to keep the option for an async exporter setup for projects that wont support threading.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions