From 1bc44804ffc0eb01e49589e090467ab64945ad9f Mon Sep 17 00:00:00 2001 From: web3-bot Date: Sun, 13 Aug 2023 20:13:12 +0000 Subject: [PATCH 1/9] chore: add or force update .github/workflows/go-test.yml --- .github/workflows/go-test.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/go-test.yml diff --git a/.github/workflows/go-test.yml b/.github/workflows/go-test.yml new file mode 100644 index 0000000..611782c --- /dev/null +++ b/.github/workflows/go-test.yml @@ -0,0 +1,18 @@ +name: Go Test + +on: + pull_request: + push: + branches: ["main"] + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'push' && github.sha || github.ref }} + cancel-in-progress: true + +jobs: + go-test: + uses: pl-strflt/uci/.github/workflows/go-test.yml@v0.0 From 5d9b6228269a05b60875ff026982f2cbf1448fe8 Mon Sep 17 00:00:00 2001 From: web3-bot Date: Sun, 13 Aug 2023 20:13:12 +0000 Subject: [PATCH 2/9] chore: add or force update .github/workflows/go-check.yml --- .github/workflows/go-check.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/go-check.yml diff --git a/.github/workflows/go-check.yml b/.github/workflows/go-check.yml new file mode 100644 index 0000000..d19691a --- /dev/null +++ b/.github/workflows/go-check.yml @@ -0,0 +1,18 @@ +name: Go Checks + +on: + pull_request: + push: + branches: ["main"] + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'push' && github.sha || github.ref }} + cancel-in-progress: true + +jobs: + go-check: + uses: pl-strflt/uci/.github/workflows/go-check.yml@v0.0 From 8da85932bae0b28abcea7a84262eec49f3965eaf Mon Sep 17 00:00:00 2001 From: web3-bot Date: Sun, 13 Aug 2023 20:13:12 +0000 Subject: [PATCH 3/9] chore: add or force update .github/workflows/releaser.yml --- .github/workflows/releaser.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/releaser.yml diff --git a/.github/workflows/releaser.yml b/.github/workflows/releaser.yml new file mode 100644 index 0000000..dd8081b --- /dev/null +++ b/.github/workflows/releaser.yml @@ -0,0 +1,17 @@ +name: Releaser + +on: + push: + paths: [ 'version.json' ] + workflow_dispatch: + +permissions: + contents: write + +concurrency: + group: ${{ github.workflow }}-${{ github.sha }} + cancel-in-progress: true + +jobs: + releaser: + uses: pl-strflt/uci/.github/workflows/releaser.yml@v0.0 From 68ed238f01ec008b9f4dbf909fc369e08ad7644a Mon Sep 17 00:00:00 2001 From: web3-bot Date: Sun, 13 Aug 2023 20:13:12 +0000 Subject: [PATCH 4/9] chore: add or force update .github/workflows/release-check.yml --- .github/workflows/release-check.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/release-check.yml diff --git a/.github/workflows/release-check.yml b/.github/workflows/release-check.yml new file mode 100644 index 0000000..bda6160 --- /dev/null +++ b/.github/workflows/release-check.yml @@ -0,0 +1,19 @@ +name: Release Checker + +on: + pull_request_target: + paths: [ 'version.json' ] + types: [ opened, synchronize, reopened, labeled, unlabeled ] + workflow_dispatch: + +permissions: + contents: write + pull-requests: write + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + release-check: + uses: pl-strflt/uci/.github/workflows/release-check.yml@v0.0 From f6d3e723ef1a83ba21654b3b6c1127c0c0d06ebe Mon Sep 17 00:00:00 2001 From: web3-bot Date: Sun, 13 Aug 2023 20:13:13 +0000 Subject: [PATCH 5/9] chore: add or force update .github/workflows/tagpush.yml --- .github/workflows/tagpush.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/tagpush.yml diff --git a/.github/workflows/tagpush.yml b/.github/workflows/tagpush.yml new file mode 100644 index 0000000..59de8cb --- /dev/null +++ b/.github/workflows/tagpush.yml @@ -0,0 +1,18 @@ +name: Tag Push Checker + +on: + push: + tags: + - v* + +permissions: + contents: read + issues: write + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + releaser: + uses: pl-strflt/uci/.github/workflows/tagpush.yml@v0.0 From f8fadb3bc64a6874e45752fa1e3a2fcba3d22507 Mon Sep 17 00:00:00 2001 From: web3-bot Date: Sun, 13 Aug 2023 20:13:13 +0000 Subject: [PATCH 6/9] chore: add or force update version.json --- version.json | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 version.json diff --git a/version.json b/version.json new file mode 100644 index 0000000..4f0adde --- /dev/null +++ b/version.json @@ -0,0 +1,3 @@ +{ + "version": "v0.0.3" +} From a6168672f6aa1b8e2757a44aa6e327e373d912b8 Mon Sep 17 00:00:00 2001 From: web3-bot Date: Mon, 14 Aug 2023 08:50:55 +0200 Subject: [PATCH 7/9] chore: format according to staticcheck rules --- metrics.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/metrics.go b/metrics.go index d5d1c1a..b0a0635 100644 --- a/metrics.go +++ b/metrics.go @@ -6,6 +6,7 @@ import ( "contrib.go.opencensus.io/exporter/prometheus" prom "github.com/prometheus/client_golang/prometheus" + "github.com/prometheus/client_golang/prometheus/collectors" "go.opencensus.io/stats" "go.opencensus.io/stats/view" "go.opencensus.io/tag" @@ -92,7 +93,7 @@ func NewDimensionlessCounter(name string, desc string, tagKeys ...tag.Key) (*Cou func RegisterPrometheusExporter(namespace string) (*prometheus.Exporter, error) { registry := prom.NewRegistry() - registry.MustRegister(prom.NewGoCollector(), prom.NewProcessCollector(prom.ProcessCollectorOpts{})) + registry.MustRegister(collectors.NewGoCollector(), collectors.NewProcessCollector(prom.ProcessCollectorOpts{})) pe, err := prometheus.NewExporter(prometheus.Options{ Namespace: namespace, From 638759570cfdd68e0146ecdfcb2674160088d0ad Mon Sep 17 00:00:00 2001 From: web3-bot Date: Mon, 14 Aug 2023 08:51:35 +0200 Subject: [PATCH 8/9] chore: format according to staticcheck rules --- storage.go | 1 - 1 file changed, 1 deletion(-) diff --git a/storage.go b/storage.go index 543f1ce..9b3c813 100644 --- a/storage.go +++ b/storage.go @@ -77,7 +77,6 @@ func (b *Batcher) Add(ctx context.Context, e *TraceEvent) { return } } - return } func (b *Batcher) flush(ctx context.Context) error { From d215400c798cfec4e4bce89f9a79ae1d0fe9c914 Mon Sep 17 00:00:00 2001 From: web3-bot Date: Mon, 14 Aug 2023 08:55:17 +0200 Subject: [PATCH 9/9] fix: use process collector opts from collectors --- metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metrics.go b/metrics.go index b0a0635..fd8ead1 100644 --- a/metrics.go +++ b/metrics.go @@ -93,7 +93,7 @@ func NewDimensionlessCounter(name string, desc string, tagKeys ...tag.Key) (*Cou func RegisterPrometheusExporter(namespace string) (*prometheus.Exporter, error) { registry := prom.NewRegistry() - registry.MustRegister(collectors.NewGoCollector(), collectors.NewProcessCollector(prom.ProcessCollectorOpts{})) + registry.MustRegister(collectors.NewGoCollector(), collectors.NewProcessCollector(collectors.ProcessCollectorOpts{})) pe, err := prometheus.NewExporter(prometheus.Options{ Namespace: namespace,