Skip to content

Commit

Permalink
Fix unit test OtlpMetricSerializationTest.ObservableGauge
Browse files Browse the repository at this point in the history
Signed-off-by: owentou <owentou@tencent.com>
  • Loading branch information
owent committed Jul 13, 2022
1 parent 07486bb commit 0acfe4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion exporters/otlp/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,10 @@ cc_test(

cc_test(
name = "otlp_log_recordable_test",
srcs = ["test/otlp_log_recordable_test.cc"],
srcs = [
"test/otlp_log_recordable_test.cc",
"test/otlp_metrics_serialization_test.cc",
],
tags = [
"otlp",
"test",
Expand Down
2 changes: 1 addition & 1 deletion exporters/otlp/test/otlp_metrics_serialization_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ static metrics_sdk::MetricData CreateObservableGaugeAggregationData()
metrics_sdk::InstrumentDescriptor inst_desc = {"LastValue", "desc", "unit",
metrics_sdk::InstrumentType::kObservableGauge,
metrics_sdk::InstrumentValueType::kDouble};
metrics_sdk::SumPointData s_data_1, s_data_2;
metrics_sdk::LastValuePointData s_data_1, s_data_2;
s_data_1.value_ = 30.2;
s_data_2.value_ = 50.2;

Expand Down

0 comments on commit 0acfe4d

Please sign in to comment.