open-telemetry / opentelemetry-cpp

The OpenTelemetry C++ Client
https://opentelemetry.io/
Apache License 2.0
911 stars 433 forks source link

[Feat] Better control of threads executed by opentelemetry-cpp #3174

Open marcalff opened 6 days ago

marcalff commented 6 days ago

Context

The opentelemetry-cpp uses threads internally, for various components.

For example:

Problem

An application that links with the opentelemetry-cpp library may have additional constraints, and may want to control at a very low level how the code executes within a thread.

For example:

Currently, there is no way to implement any of this from an application that uses opentelemetry-cpp.

lalitb commented 5 days ago

This was discussed earlier, with some proposal here - https://github.com/open-telemetry/opentelemetry-cpp/issues/1822#issuecomment-1333400422