From 4292a57fb438283a222d2a4b19d84e7fd6ea15ee Mon Sep 17 00:00:00 2001 From: Tom Tan Date: Sat, 3 Jul 2021 00:12:50 -0700 Subject: [PATCH] Fix assertion to check the correct attribute value type (#890) --- exporters/otlp/src/otlp_recordable.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exporters/otlp/src/otlp_recordable.cc b/exporters/otlp/src/otlp_recordable.cc index 1227850858..a17419df7e 100644 --- a/exporters/otlp/src/otlp_recordable.cc +++ b/exporters/otlp/src/otlp_recordable.cc @@ -138,9 +138,9 @@ void PopulateAttribute(opentelemetry::proto::common::v1::KeyValue *attribute, { // Assert size of variant to ensure that this method gets updated if the variant // definition changes - static_assert(nostd::variant_size::value == - kOwnedAttributeValueSize + 1, - "AttributeValue contains unknown type"); + static_assert( + nostd::variant_size::value == kOwnedAttributeValueSize, + "OwnedAttributeValue contains unknown type"); attribute->set_key(key.data(), key.size());