Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit e46a928

Browse files
authored
Update convenience target //opencensus/stats:stats (#329)
* Include all headers it re-exports. * Re-export distribution.h, which was missed. * Add IWYU pragmas.
1 parent 4da30f7 commit e46a928

File tree

15 files changed

+56
-2
lines changed

15 files changed

+56
-2
lines changed

opencensus/stats/BUILD

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,30 @@ package(default_visibility = ["//visibility:private"])
2424
cc_library(
2525
name = "stats",
2626
hdrs = [
27-
"internal/aggregation_window.h",
28-
"internal/set_aggregation_window.h",
27+
"aggregation.h",
28+
"bucket_boundaries.h",
29+
"distribution.h",
30+
"measure.h",
31+
"measure_descriptor.h",
32+
"measure_registry.h",
33+
"recording.h",
2934
"stats.h",
3035
"stats_exporter.h",
36+
"tag_key.h",
37+
"tag_set.h",
38+
"view.h",
39+
"view_data.h",
40+
"view_descriptor.h",
3141
],
3242
copts = DEFAULT_COPTS,
3343
visibility = ["//visibility:public"],
3444
deps = [
3545
":core",
3646
":recording",
47+
"//opencensus/common/internal:stats_object",
48+
"//opencensus/common/internal:string_vector_hash",
49+
"//opencensus/tags",
50+
"@com_google_absl//absl/base:core_headers",
3751
"@com_google_absl//absl/strings",
3852
"@com_google_absl//absl/time",
3953
],

opencensus/stats/aggregation.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
// IWYU pragma: private, include "opencensus/stats/stats.h"
16+
// IWYU pragma: friend opencensus/stats/.*
17+
1518
#ifndef OPENCENSUS_STATS_AGGREGATION_H_
1619
#define OPENCENSUS_STATS_AGGREGATION_H_
1720

opencensus/stats/bucket_boundaries.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
// IWYU pragma: private, include "opencensus/stats/stats.h"
16+
// IWYU pragma: friend opencensus/stats/.*
17+
1518
#ifndef OPENCENSUS_STATS_BUCKET_BOUNDARIES_H_
1619
#define OPENCENSUS_STATS_BUCKET_BOUNDARIES_H_
1720

opencensus/stats/distribution.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
// IWYU pragma: private, include "opencensus/stats/stats.h"
16+
// IWYU pragma: friend opencensus/stats/.*
17+
1518
#ifndef OPENCENSUS_STATS_DISTRIBUTION_H_
1619
#define OPENCENSUS_STATS_DISTRIBUTION_H_
1720

opencensus/stats/measure.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
// IWYU pragma: private, include "opencensus/stats/stats.h"
16+
// IWYU pragma: friend opencensus/stats/.*
17+
1518
#ifndef OPENCENSUS_STATS_MEASURE_H_
1619
#define OPENCENSUS_STATS_MEASURE_H_
1720

opencensus/stats/measure_descriptor.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
// IWYU pragma: private, include "opencensus/stats/stats.h"
16+
// IWYU pragma: friend opencensus/stats/.*
17+
1518
#ifndef OPENCENSUS_STATS_MEASURE_DESCRIPTOR_H_
1619
#define OPENCENSUS_STATS_MEASURE_DESCRIPTOR_H_
1720

opencensus/stats/measure_registry.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
// IWYU pragma: private, include "opencensus/stats/stats.h"
16+
// IWYU pragma: friend opencensus/stats/.*
17+
1518
#ifndef OPENCENSUS_STATS_MEASURE_REGISTRY_H_
1619
#define OPENCENSUS_STATS_MEASURE_REGISTRY_H_
1720

opencensus/stats/recording.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
// IWYU pragma: private, include "opencensus/stats/stats.h"
16+
// IWYU pragma: friend opencensus/stats/.*
17+
1518
#ifndef OPENCENSUS_STATS_RECORDING_H_
1619
#define OPENCENSUS_STATS_RECORDING_H_
1720

opencensus/stats/stats.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
// a long include list.
2020
#include "opencensus/stats/aggregation.h" // IWYU pragma: export
2121
#include "opencensus/stats/bucket_boundaries.h" // IWYU pragma: export
22+
#include "opencensus/stats/distribution.h" // IWYU pragma: export
2223
#include "opencensus/stats/measure.h" // IWYU pragma: export
2324
#include "opencensus/stats/measure_descriptor.h" // IWYU pragma: export
2425
#include "opencensus/stats/measure_registry.h" // IWYU pragma: export

opencensus/stats/stats_exporter.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
// IWYU pragma: private, include "opencensus/stats/stats.h"
16+
// IWYU pragma: friend opencensus/stats/.*
17+
1518
#ifndef OPENCENSUS_STATS_STATS_EXPORTER_H_
1619
#define OPENCENSUS_STATS_STATS_EXPORTER_H_
1720

0 commit comments

Comments
 (0)