Skip to content

Commit

Permalink
Remove v1 namespace usage to permit use of ABI v2 (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-mccann authored Feb 13, 2024
1 parent 10ca06b commit 437cd26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ inline std::string AttributeValueToString(
result = std::to_string(nostd::get<double>(value));
} else if (nostd::holds_alternative<const char*>(value)) {
result = std::string(nostd::get<const char*>(value));
} else if (nostd::holds_alternative<opentelemetry::v1::nostd::string_view>(value)) {
result = std::string(nostd::get<opentelemetry::v1::nostd::string_view>(value).data());
} else if (nostd::holds_alternative<opentelemetry::nostd::string_view>(value)) {
result = std::string(nostd::get<opentelemetry::nostd::string_view>(value).data());
} else {
LOG_WARN("[Fluentd Exporter] AttributeValueToString - "
" Nested attributes not supported - ignored");
Expand Down
2 changes: 1 addition & 1 deletion exporters/user_events/src/metrics_exporter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ sdk_common::ExportResult Exporter::Export(
return sdk_common::ExportResult::kSuccess;
}

proto::collector::metrics::v1::ExportMetricsServiceRequest request;
proto::collector::metrics::ExportMetricsServiceRequest request;
otlp_exporter::OtlpMetricUtils::PopulateRequest(data, &request);

int size = (int)request.ByteSizeLong();
Expand Down

0 comments on commit 437cd26

Please sign in to comment.