@@ -294,40 +294,37 @@ void DoubleUpDownCounter::Add(double value, const opentelemetry::context::Contex
294294
295295#if OPENTELEMETRY_ABI_VERSION_NO >= 2
296296LongGauge::LongGauge (const InstrumentDescriptor &instrument_descriptor,
297- std::unique_ptr<SyncWritableMetricStorage> storage)
297+ std::unique_ptr<SyncWritableMetricStorage> storage)
298298 : Synchronous(instrument_descriptor, std::move(storage))
299299{
300300 if (!storage_)
301301 {
302- OTEL_INTERNAL_LOG_ERROR (
303- " [LongGauge::LongGauge] - Error constructing LongGauge."
304- << " The metric storage is invalid for " << instrument_descriptor.name_ );
302+ OTEL_INTERNAL_LOG_ERROR (" [LongGauge::LongGauge] - Error constructing LongGauge."
303+ << " The metric storage is invalid for " << instrument_descriptor.name_ );
305304 }
306305}
307306
308307void LongGauge::Record (int64_t value,
309- const opentelemetry::common::KeyValueIterable &attributes) noexcept
308+ const opentelemetry::common::KeyValueIterable &attributes) noexcept
310309{
311310 auto context = opentelemetry::context::Context{};
312311 if (!storage_)
313312 {
314- OTEL_INTERNAL_LOG_WARN (
315- " [LongGauge::Record(V,A)] Value not recorded - invalid storage for: "
316- << instrument_descriptor_.name_ );
313+ OTEL_INTERNAL_LOG_WARN (" [LongGauge::Record(V,A)] Value not recorded - invalid storage for: "
314+ << instrument_descriptor_.name_ );
317315 return ;
318316 }
319317 return storage_->RecordLong (value, attributes, context);
320318}
321319
322320void LongGauge::Record (int64_t value,
323- const opentelemetry::common::KeyValueIterable &attributes,
324- const opentelemetry::context::Context &context) noexcept
321+ const opentelemetry::common::KeyValueIterable &attributes,
322+ const opentelemetry::context::Context &context) noexcept
325323{
326324 if (!storage_)
327325 {
328- OTEL_INTERNAL_LOG_WARN (
329- " [LongGauge::Record(V,A,C)] Value not recorded - invalid storage for: "
330- << instrument_descriptor_.name_ );
326+ OTEL_INTERNAL_LOG_WARN (" [LongGauge::Record(V,A,C)] Value not recorded - invalid storage for: "
327+ << instrument_descriptor_.name_ );
331328 return ;
332329 }
333330 return storage_->RecordLong (value, attributes, context);
@@ -349,48 +346,44 @@ void LongGauge::Record(int64_t value, const opentelemetry::context::Context &con
349346{
350347 if (!storage_)
351348 {
352- OTEL_INTERNAL_LOG_WARN (
353- " [LongGauge::Record(V,C)] Value not recorded - invalid storage for: "
354- << instrument_descriptor_.name_ );
349+ OTEL_INTERNAL_LOG_WARN (" [LongGauge::Record(V,C)] Value not recorded - invalid storage for: "
350+ << instrument_descriptor_.name_ );
355351 return ;
356352 }
357353 return storage_->RecordLong (value, context);
358354}
359355
360356DoubleGauge::DoubleGauge (const InstrumentDescriptor &instrument_descriptor,
361- std::unique_ptr<SyncWritableMetricStorage> storage)
357+ std::unique_ptr<SyncWritableMetricStorage> storage)
362358 : Synchronous(instrument_descriptor, std::move(storage))
363359{
364360 if (!storage_)
365361 {
366- OTEL_INTERNAL_LOG_ERROR (
367- " [DoubleGauge::DoubleGauge] - Error constructing DoubleUpDownCounter."
368- << " The metric storage is invalid for " << instrument_descriptor.name_ );
362+ OTEL_INTERNAL_LOG_ERROR (" [DoubleGauge::DoubleGauge] - Error constructing DoubleUpDownCounter."
363+ << " The metric storage is invalid for " << instrument_descriptor.name_ );
369364 }
370365}
371366
372367void DoubleGauge::Record (double value,
373- const opentelemetry::common::KeyValueIterable &attributes) noexcept
368+ const opentelemetry::common::KeyValueIterable &attributes) noexcept
374369{
375370 if (!storage_)
376371 {
377- OTEL_INTERNAL_LOG_WARN (
378- " [DoubleGauge::Record(V,A)] Value not recorded - invalid storage for: "
379- << instrument_descriptor_.name_ );
372+ OTEL_INTERNAL_LOG_WARN (" [DoubleGauge::Record(V,A)] Value not recorded - invalid storage for: "
373+ << instrument_descriptor_.name_ );
380374 }
381375 auto context = opentelemetry::context::Context{};
382376 return storage_->RecordDouble (value, attributes, context);
383377}
384378
385379void DoubleGauge::Record (double value,
386- const opentelemetry::common::KeyValueIterable &attributes,
387- const opentelemetry::context::Context &context) noexcept
380+ const opentelemetry::common::KeyValueIterable &attributes,
381+ const opentelemetry::context::Context &context) noexcept
388382{
389383 if (!storage_)
390384 {
391- OTEL_INTERNAL_LOG_WARN (
392- " [DoubleGauge::Record(V,A,C)] Value not recorded - invalid storage for: "
393- << instrument_descriptor_.name_ );
385+ OTEL_INTERNAL_LOG_WARN (" [DoubleGauge::Record(V,A,C)] Value not recorded - invalid storage for: "
386+ << instrument_descriptor_.name_ );
394387 return ;
395388 }
396389 return storage_->RecordDouble (value, attributes, context);
@@ -400,9 +393,8 @@ void DoubleGauge::Record(double value) noexcept
400393{
401394 if (!storage_)
402395 {
403- OTEL_INTERNAL_LOG_WARN (
404- " [DoubleGauge::Record(V)] Value not recorded - invalid storage for: "
405- << instrument_descriptor_.name_ );
396+ OTEL_INTERNAL_LOG_WARN (" [DoubleGauge::Record(V)] Value not recorded - invalid storage for: "
397+ << instrument_descriptor_.name_ );
406398 return ;
407399 }
408400 auto context = opentelemetry::context::Context{};
@@ -413,9 +405,8 @@ void DoubleGauge::Record(double value, const opentelemetry::context::Context &co
413405{
414406 if (!storage_)
415407 {
416- OTEL_INTERNAL_LOG_WARN (
417- " [DoubleGauge::Record(V,C)] Value not recorded - invalid storage for: "
418- << instrument_descriptor_.name_ );
408+ OTEL_INTERNAL_LOG_WARN (" [DoubleGauge::Record(V,C)] Value not recorded - invalid storage for: "
409+ << instrument_descriptor_.name_ );
419410 return ;
420411 }
421412 return storage_->RecordDouble (value, context);
0 commit comments