pack_stats 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb012a138ad533b84c50a2349e006b2ad0fd4d1a6e4170c8883e17a709051377
4
- data.tar.gz: fd679a7ea57cf9508e9573ea1746fc31b2ac23070eed7f2b9375a6efc7d991c4
3
+ metadata.gz: da6fd6a6975e100b1f2b00e3010cdfb2ebd888f65049bb6a5eccea103a571db7
4
+ data.tar.gz: 4f43caf68831237e8488e428123a569142d0a831c73b8f00916234f5f39082b7
5
5
  SHA512:
6
- metadata.gz: f224241cc9183501c6be5738a4ee61f53a863610ac883587dd7e43f0fa2c409fc2bd52a5ef97e1b840e8699346b79618397caecc937133a8f3f3d2108433e49c
7
- data.tar.gz: 7ebcf204658cf0cfdf96f86de7fb8f4e302eca96d5ecac23f65a07702680e674b2ed7396b499ef50be75143dd3289f34b2d0e1b1e0a8b66c5f9f04f222c77fe5
6
+ metadata.gz: 1cd7795aaf3df7f570ba657c225e76989ccf7b0d80215b0749af02084f32e3557ed62d9d719f396512630f72b04147f1bc39e6987e86a8a67b63d721b7c38458
7
+ data.tar.gz: 8ad7350d58cde8c6579d5a8fd2d5419e355a23339660def10a22b8888d065d93caff7e907a7ebd48a4f99fcc976a99ec89209339c03f225018a41f848502e85f
data/README.md CHANGED
@@ -101,19 +101,6 @@ Right now this tool sends metrics to DataDog only. However, if you want to use t
101
101
 
102
102
  # Setting Up Your Dashboards
103
103
 
104
- Gusto has two dashboards that we've created to view these metrics. We've also exported and released the Dashboard JSON for each of these dashboards. You can create a new dashboard and then click "import dashboard JSON" to get a jump start on tracking your metrics. Note you may want to make some tweaks to these dashboards to better fit your organization's circumstances and goals.
104
+ We recommend the use of the dashboard that is shipped with this gem. You can create a new dashboard and then click "import dashboard JSON" to get a jump start on tracking your metrics. Note you may want to make some tweaks to these dashboards to better fit your organization's circumstances and goals.
105
105
 
106
- ## [Modularization] Executive Summary
107
-
108
- This helps answer questions like:
109
- - How are we doing on reducing dependency and privacy violations in your monolith overall?
110
- - How are we doing overall on adopting packwerk?
111
-
112
- [Dashboard JSON](docs/executive_summary.json)
113
-
114
- ## [Modularization] Per-Package and Per-Team
115
- - How is each team and package doing on reducing dependency and privacy violations in your monolith?
116
- - What is the total count of dependency/privacy violations for each pack/team and what's the change since last month?
117
- - Which pack/team does my pack/team have the most dependency/privacy violations on?
118
-
119
- [Dashboard JSON](docs/per_package_and_per_team.json)
106
+ [Dashboard JSON](docs/dashboard.json)
@@ -14,11 +14,19 @@ module PackStats
14
14
 
15
15
  sig { params(package: ParsePackwerk::Package, app_name: String).returns(T::Array[Tag]) }
16
16
  def self.tags_for_package(package, app_name)
17
- [
17
+
18
+ tags = [
18
19
  Tag.new(key: 'package', value: humanized_package_name(package.name)),
19
20
  Tag.new(key: 'app', value: app_name),
20
21
  *Metrics.tags_for_team(Private.package_owner(package)),
21
22
  ]
23
+
24
+ layer = package.config['layer']
25
+ if layer
26
+ tags << Tag.new(key: 'layer', value: layer)
27
+ end
28
+
29
+ tags
22
30
  end
23
31
 
24
32
  sig { params(team_name: T.nilable(String)).returns(T::Array[Tag]) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pack_stats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gusto Engineers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-08 00:00:00.000000000 Z
11
+ date: 2023-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: code_teams