// https://github.com/open-telemetry/opentelemetry-proto/blob/v1.9.0/docs/specification.md#otlphttp.
[](Event::Dispatcher& dispatcher) { return std::make_shared<ThreadLocalCache>(dispatcher); });
if (config.body().value_case() != ::opentelemetry::proto::common::v1::AnyValue::VALUE_NOT_SET) {
body_formatter_ = std::make_unique<OpenTelemetryFormatter>(packBody(config.body()), commands);
attributes_formatter_ = std::make_unique<OpenTelemetryFormatter>(config.attributes(), commands);