Skip to content

[SDK] Tracer provider shutdown blocks in-definitively #3187

@marcalff

Description

@marcalff

The following code, in file sdk/src/trace/tracer_provider.cc:

bool TracerProvider::Shutdown() noexcept
{
  return context_->Shutdown();
}

does not take a timeout parameter.

TracerProvider::Shutdown() will block in-definitively if unsent spans are present.

This prevents an application to shutdown opentelemetry-cpp.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriage/acceptedIndicates an issue or PR is ready to be actively worked on.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions