This repository was archived by the owner on Jul 31, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed
exporters/stats/prometheus Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ opencensus_lib(
2626opencensus_lib(common_stats_object DEPS absl::time)
2727
2828# Define NOMINMAX to fix build errors when compiling with MSVC.
29- target_compile_definitions (opencensus_common_stats_object INTERFACE
30- $<$<CXX_COMPILER_ID:MSVC >:NOMINMAX>)
29+ target_compile_definitions (opencensus_common_stats_object
30+ INTERFACE $<$<CXX_COMPILER_ID:MSVC >:NOMINMAX>)
3131
3232opencensus_lib(common_string_vector_hash DEPS absl::hash)
3333
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ namespace opencensus {
2525namespace exporters {
2626namespace stats {
2727
28- std::vector<prometheus::MetricFamily> PrometheusExporter::Collect () {
28+ std::vector<prometheus::MetricFamily> PrometheusExporter::Collect () const {
2929 const auto data = opencensus::stats::StatsExporter::GetViewData ();
3030 std::vector<prometheus::MetricFamily> output (data.size ());
3131 for (int i = 0 ; i < data.size (); ++i) {
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ namespace stats {
4141// PrometheusExporter is thread-safe.
4242class PrometheusExporter final : public ::prometheus::Collectable {
4343 public:
44- std::vector<prometheus::MetricFamily> Collect () override ;
44+ std::vector<prometheus::MetricFamily> Collect () const override ;
4545};
4646
4747} // namespace stats
Original file line number Diff line number Diff line change @@ -57,8 +57,8 @@ opencensus_lib(
5757 absl::span)
5858
5959# Define NOMINMAX to fix build errors when compiling with MSVC.
60- target_compile_definitions (opencensus_stats_core PUBLIC
61- $<$<CXX_COMPILER_ID:MSVC >:NOMINMAX>)
60+ target_compile_definitions (opencensus_stats_core
61+ PUBLIC $<$<CXX_COMPILER_ID:MSVC >:NOMINMAX>)
6262
6363opencensus_lib(
6464 stats_recording
Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ opencensus_lib(
5050 absl::span)
5151
5252# Define NOMINMAX to fix build errors when compiling with MSVC.
53- target_compile_definitions (opencensus_trace PUBLIC
54- $<$<CXX_COMPILER_ID:MSVC >:NOMINMAX>)
53+ target_compile_definitions (opencensus_trace
54+ PUBLIC $<$<CXX_COMPILER_ID:MSVC >:NOMINMAX>)
5555
5656opencensus_lib(
5757 trace_b3
You can’t perform that action at this time.
0 commit comments