Skip to content

Commit 31956f8

Browse files
authored
[BUILD] Fix build for esp32 (open-telemetry#3155)
1 parent c1ef416 commit 31956f8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sdk/include/opentelemetry/sdk/common/empty_attributes.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ namespace sdk
2121
* with default attributes.
2222
*/
2323
static const opentelemetry::common::KeyValueIterableView<
24-
std::array<std::pair<std::string, int>, 0>> &
24+
std::array<std::pair<std::string, int32_t>, 0>> &
2525
GetEmptyAttributes() noexcept
2626
{
27-
static const std::array<std::pair<std::string, int>, 0> array{};
27+
static const std::array<std::pair<std::string, int32_t>, 0> array{};
2828
static const opentelemetry::common::KeyValueIterableView<
29-
std::array<std::pair<std::string, int>, 0>>
29+
std::array<std::pair<std::string, int32_t>, 0>>
3030
kEmptyAttributes(array);
3131

3232
return kEmptyAttributes;

sdk/include/opentelemetry/sdk/trace/span_data.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ class SpanData final : public Recordable
257257
opentelemetry::common::SystemTimestamp timestamp =
258258
opentelemetry::common::SystemTimestamp(std::chrono::system_clock::now()),
259259
const opentelemetry::common::KeyValueIterable &attributes =
260-
opentelemetry::common::KeyValueIterableView<std::map<std::string, int>>(
260+
opentelemetry::common::KeyValueIterableView<std::map<std::string, int32_t>>(
261261
{})) noexcept override
262262
{
263263
SpanDataEvent event(std::string(name), timestamp, attributes);

0 commit comments

Comments
 (0)