File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
include/opentelemetry/sdk/configuration Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 33
44#pragma once
55
6- #include < cstddef>
7-
86#include " opentelemetry/sdk/configuration/attribute_value_configuration.h"
97#include " opentelemetry/sdk/configuration/attribute_value_configuration_visitor.h"
108#include " opentelemetry/version.h"
@@ -25,7 +23,7 @@ class IntegerAttributeValueConfiguration : public AttributeValueConfiguration
2523 visitor->VisitInteger (this );
2624 }
2725
28- long value;
26+ long long value;
2927};
3028
3129} // namespace configuration
Original file line number Diff line number Diff line change @@ -187,7 +187,9 @@ class ResourceAttributeValueSetter
187187 void VisitInteger (
188188 const opentelemetry::sdk::configuration::IntegerAttributeValueConfiguration *model) override
189189 {
190- opentelemetry::common::AttributeValue attribute_value (model->value );
190+ /* Provide exact type to opentelemetry::common::AttributeValue variant. */
191+ int64_t value = model->value ;
192+ opentelemetry::common::AttributeValue attribute_value (value);
191193 resource_attributes_.SetAttribute (name_, attribute_value);
192194 }
193195
You can’t perform that action at this time.
0 commit comments