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 +4 -4
- data/README.md +2 -15
- data/lib/pack_stats/private/metrics.rb +9 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da6fd6a6975e100b1f2b00e3010cdfb2ebd888f65049bb6a5eccea103a571db7
|
4
|
+
data.tar.gz: 4f43caf68831237e8488e428123a569142d0a831c73b8f00916234f5f39082b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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.
|
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-
|
11
|
+
date: 2023-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: code_teams
|