Skip to content

Commit 8fc6f88

Browse files
cleanup
Signed-off-by: Said Altury <Said.Altury@ibm.com>
1 parent a68ffc4 commit 8fc6f88

10 files changed

Lines changed: 16 additions & 48 deletions

File tree

go.mod

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ require (
5858
github.com/IBM/idemix/bccsp/schemes/weak-bb v0.0.0-20250313153527-832db18b9478 // indirect
5959
github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible // indirect
6060
github.com/Microsoft/go-winio v0.6.2 // indirect
61-
github.com/VictoriaMetrics/fastcache v1.12.2 // indirect
6261
github.com/alecthomas/kingpin/v2 v2.4.0 // indirect
6362
github.com/alecthomas/units v0.0.0-20240626203959-61d1e3462e30 // indirect
6463
github.com/benbjohnson/clock v1.3.5 // indirect
@@ -117,7 +116,6 @@ require (
117116
github.com/gogo/protobuf v1.3.2 // indirect
118117
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
119118
github.com/golang/protobuf v1.5.4 // indirect
120-
github.com/golang/snappy v0.0.4 // indirect
121119
github.com/google/go-cmp v0.7.0 // indirect
122120
github.com/google/gopacket v1.1.19 // indirect
123121
github.com/google/pprof v0.0.0-20250403155104-27863c87afa6 // indirect
@@ -250,7 +248,6 @@ require (
250248
github.com/stretchr/objx v0.5.2 // indirect
251249
github.com/subosito/gotenv v1.6.0 // indirect
252250
github.com/sykesm/zap-logfmt v0.0.4 // indirect
253-
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect
254251
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
255252
github.com/ugorji/go/codec v1.2.12 // indirect
256253
github.com/uptrace/opentelemetry-go-extra/otelsql v0.3.2 // indirect

go.sum

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -658,8 +658,6 @@ github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go
658658
github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY=
659659
github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU=
660660
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
661-
github.com/VictoriaMetrics/fastcache v1.12.2 h1:N0y9ASrJ0F6h0QaC3o6uJb3NIZ9VKLjCM7NQbSmF7WI=
662-
github.com/VictoriaMetrics/fastcache v1.12.2/go.mod h1:AmC+Nzz1+3G2eCPapF6UcsnkThDcMsQicp4xDukwJYI=
663661
github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE=
664662
github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g=
665663
github.com/ajstarks/deck v0.0.0-20200831202436-30c9fc6549a9/go.mod h1:JynElWSGnm/4RlzPXRlREEwqTHAN3T56Bv2ITsFT3gY=
@@ -670,7 +668,6 @@ github.com/alecthomas/kingpin/v2 v2.4.0 h1:f48lwail6p8zpO1bC4TxtqACaGqHYA22qkHjH
670668
github.com/alecthomas/kingpin/v2 v2.4.0/go.mod h1:0gyi0zQnjuFk8xrkNKamJoyUo382HRL7ATRpFZCw6tE=
671669
github.com/alecthomas/units v0.0.0-20240626203959-61d1e3462e30 h1:t3eaIm0rUkzbrIewtiFmMK5RXHej2XnoXNhxVsAYUfg=
672670
github.com/alecthomas/units v0.0.0-20240626203959-61d1e3462e30/go.mod h1:fvzegU4vN3H1qMT+8wDmzjAcDONcgo2/SZ/TyfdUOFs=
673-
github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM=
674671
github.com/andybalholm/brotli v1.0.4/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig=
675672
github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c=
676673
github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
@@ -828,7 +825,6 @@ github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHk
828825
github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0=
829826
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
830827
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
831-
github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU=
832828
github.com/fsnotify/fsnotify v1.8.0 h1:dAwr6QBTBZIkG8roQaJjGof0pp0EeF+tNV7YBP3F/8M=
833829
github.com/fsnotify/fsnotify v1.8.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0=
834830
github.com/fsouza/go-dockerclient v1.12.0 h1:S2f2crEUbBNCFiF06kR/GvioEB8EMsb3Td/bpawD+aU=
@@ -953,7 +949,6 @@ github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiu
953949
github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=
954950
github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps=
955951
github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
956-
github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM=
957952
github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
958953
github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
959954
github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
@@ -1543,7 +1538,6 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5
15431538
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
15441539
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
15451540
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
1546-
github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals=
15471541
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
15481542
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
15491543
github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
@@ -1555,8 +1549,6 @@ github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8
15551549
github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU=
15561550
github.com/sykesm/zap-logfmt v0.0.4 h1:U2WzRvmIWG1wDLCFY3sz8UeEmsdHQjHFNlIdmroVFaI=
15571551
github.com/sykesm/zap-logfmt v0.0.4/go.mod h1:AuBd9xQjAe3URrWT1BBDk2v2onAZHkZkWRMiYZXiZWA=
1558-
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d h1:vfofYNRScrDdvS342BElfbETmL1Aiz3i2t0zfRj16Hs=
1559-
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d/go.mod h1:RRCYJbIwD5jmqPI9XoAFR0OcDxqUctll6zUj/+B4S48=
15601552
github.com/tarm/serial v0.0.0-20180830185346-98f6abe2eb07/go.mod h1:kDXzergiv9cbyO7IOYJZWg1U88JhDg3PB6klq9Hg2pA=
15611553
github.com/tedsuo/ifrit v0.0.0-20230330192023-5cba443a66c4/go.mod h1:eyZnKCc955uh98WQvzOm0dgAeLnf2O0Rz0LPoC5ze+0=
15621554
github.com/tedsuo/ifrit v0.0.0-20230516164442-7862c310ad26 h1:mWCRvpoEMVlslxEvvptKgIUb35va9yj9Oq5wGw/er5I=
@@ -1994,7 +1986,6 @@ golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
19941986
golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
19951987
golang.org/x/sys v0.9.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
19961988
golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
1997-
golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
19981989
golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
19991990
golang.org/x/sys v0.33.0 h1:q3i8TbbEz+JRD9ywIRlyRAQbM0qF7hu24q3teo2hbuw=
20001991
golang.org/x/sys v0.33.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=

integration/nwo/txgen/service/metrics/collector.go

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -20,46 +20,38 @@ func NewCollector(p metrics.Provider) *collector {
2020
supportsGetters: supportsGetters,
2121

2222
TotalTransferRequests: p.NewCounter(metrics.CounterOpts{
23-
Namespace: "tx_gen",
24-
Name: "total_transfer",
25-
Help: "Total transfer requests executed",
23+
Name: "total_transfer",
24+
Help: "Total transfer requests executed",
2625
}),
2726
TotalSuccessTransferRequests: p.NewCounter(metrics.CounterOpts{
28-
Namespace: "tx_gen",
29-
Name: "success_transfer",
30-
Help: "Success transfer requests executed",
27+
Name: "success_transfer",
28+
Help: "Success transfer requests executed",
3129
}),
3230
TransferDuration: p.NewHistogram(metrics.HistogramOpts{
33-
Namespace: "tx_gen",
34-
Name: "transfer_duration",
35-
Help: "Duration of transfer requests executed",
31+
Name: "transfer_duration",
32+
Help: "Duration of transfer requests executed",
3633
}),
3734

3835
TotalWithdrawRequests: p.NewCounter(metrics.CounterOpts{
39-
Namespace: "tx_gen",
40-
Name: "total_withdraw",
41-
Help: "Total withdraw requests executed",
36+
Name: "total_withdraw",
37+
Help: "Total withdraw requests executed",
4238
}),
4339
TotalSuccessWithdrawRequests: p.NewCounter(metrics.CounterOpts{
44-
Namespace: "tx_gen",
45-
Name: "success_withdraw",
46-
Help: "Success withdraw requests executed",
40+
Name: "success_withdraw",
41+
Help: "Success withdraw requests executed",
4742
}),
4843
WithdrawDuration: p.NewHistogram(metrics.HistogramOpts{
49-
Namespace: "tx_gen",
50-
Name: "withdraw_duration",
51-
Help: "Duration of withdraw requests executed",
44+
Name: "withdraw_duration",
45+
Help: "Duration of withdraw requests executed",
5246
}),
5347

5448
ActiveRequests: p.NewGauge(metrics.GaugeOpts{
55-
Namespace: "tx_gen",
56-
Name: "active_requests",
57-
Help: "Currently active requests",
49+
Name: "active_requests",
50+
Help: "Currently active requests",
5851
}),
5952
TotalRequests: p.NewGauge(metrics.GaugeOpts{
60-
Namespace: "tx_gen",
61-
Name: "total_transfer",
62-
Help: "Total requests executed (issue/transfer/balance/initiate)",
53+
Name: "total_transfer",
54+
Help: "Total requests executed (issue/transfer/balance/initiate)",
6355
}),
6456
}
6557
}

integration/nwo/txgen/service/metrics/metrics.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,16 @@ func NewMetrics(p metrics.Provider) *Metrics {
3939
supportsGetters: supportsGetters,
4040

4141
RequestsSent: p.NewCounter(metrics.CounterOpts{
42-
Namespace: "tx_gen",
4342
Name: "sent",
4443
Help: "Total transfer requests executed",
4544
LabelNames: []string{OperationLabel},
4645
}),
4746
RequestsReceived: p.NewCounter(metrics.CounterOpts{
48-
Namespace: "tx_gen",
4947
Name: "received",
5048
Help: "Success transfer requests executed",
5149
LabelNames: []string{OperationLabel, SuccessLabel},
5250
}),
5351
RequestDuration: p.NewHistogram(metrics.HistogramOpts{
54-
Namespace: "tx_gen",
5552
Name: "duration",
5653
Help: "Duration of transfer requests executed",
5754
Buckets: utils.ExponentialBucketTimeRange(0, 50*time.Second, 15),

token/core/zkatdlog/nogh/v1/metrics.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@ import (
1212

1313
var (
1414
zkIssueDurationOpts = metrics.HistogramOpts{
15-
Namespace: "token_sdk_zkatdlog_nogh",
1615
Name: "issue_duration",
1716
Help: "Duration of zk issue token",
1817
LabelNames: []string{"network", "channel", "namespace"},
1918
}
2019
zkTransferDurationOpts = metrics.HistogramOpts{
21-
Namespace: "token_sdk_zkatdlog_nogh",
2220
Name: "transfer_duration",
2321
Help: "Duration of zk transfer token",
2422
LabelNames: []string{"network", "channel", "namespace"},

token/services/certifier/interactive/metrics.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import (
1212

1313
var (
1414
certifiedTokens = metrics.CounterOpts{
15-
Namespace: "certification_interactive",
1615
Name: "certified_tokens",
1716
Help: "The number of tokens certified.",
1817
LabelNames: []string{"network", "channel", "namespace"},

token/services/identity/idemix/cache/metrics.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import (
1212

1313
var (
1414
LevelOpts = metrics.GaugeOpts{
15-
Namespace: "idemix",
1615
Name: "cache_level",
1716
Help: "Level of the idemix cache",
1817
LabelNames: []string{"network", "channel", "namespace"},

token/services/identity/wallet/metrics.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import (
1212

1313
var (
1414
CacheLevelOpts = metrics.GaugeOpts{
15-
Namespace: "wallet",
1615
Name: "recipient_data_cache_level",
1716
Help: "Level of the wallet recipient data cache",
1817
LabelNames: []string{"network", "channel", "namespace"},

token/services/selector/sherdlock/metrics.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ type Metrics struct {
2424
func newMetrics(p metrics.Provider) *Metrics {
2525
return &Metrics{
2626
UnspentTokensInvocations: p.NewCounter(metrics.CounterOpts{
27-
Namespace: "sherdlock",
2827
Name: "unspent_tokens_invocations",
2928
Help: "The number of invocations",
3029
LabelNames: []string{fetcherTypeLabel},

token/services/ttx/metrics.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,16 @@ var (
1717
spKey = reflect.TypeOf((*Metrics)(nil))
1818

1919
endorsedTransactions = metrics.CounterOpts{
20-
Namespace: "ttx",
2120
Name: "endorsed_transactions",
2221
Help: "The number of endorsed transactions.",
2322
LabelNames: []string{"network", "channel", "namespace"},
2423
}
2524
auditApprovedTransactions = metrics.CounterOpts{
26-
Namespace: "ttx",
2725
Name: "audit_approved_transactions",
2826
Help: "The number of approved transactions by the auditor.",
2927
LabelNames: []string{"network", "channel", "namespace"},
3028
}
3129
acceptedTransactions = metrics.CounterOpts{
32-
Namespace: "ttx",
3330
Name: "accepted_transactions",
3431
Help: "The number of accepted transactions.",
3532
LabelNames: []string{"network", "channel", "namespace"},

0 commit comments

Comments
 (0)