Skip to content

Commit 6af240f

Browse files
committed
more cleanup
1 parent 6a94fbe commit 6af240f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sdk/include/opentelemetry/sdk/configuration/integer_attribute_value_configuration.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
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

sdk/src/configuration/sdk_builder.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)