Use a build tag to toggle Prometheus/metrics
I maintainer di solito rispondono entro 3 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- go, prometheus
- Ambito
- build-system, observability
Direzione di ricerca
Start by reading the linked Go build-tags article and identify the Prometheus and API endpoint imports in the Bee codebase. Use the proposed metrics tag to assess whether those imports are excluded, then run gsa and confirm that the resulting bundle no longer includes Prometheus metrics.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
Not always metrics are needed to be enabled. In certain cases, you'd want to have them disabled to decrease bundle size and gain slight performance gains. Would be very nice if all metrics (including both prometheus and API endpoints) could be disabled using a build tag
Motivation
There is no point for Prometheus metrics in WASM or low-end environments such as EFI modules. Additionally, Prometheus blocks compilation for tinygo.
Implementation
Use build tags. Here's an article explaining how they work: https://leapcell.io/blog/understanding-go-build-tags
Example name: -tag metrics
Drawbacks
Would require a bunch of manual rewriting. You can also check whether Prometheus is included or not by running gsa and observing imports: https://github.com/Zxilly/go-size-analyzer/issues
- Lingua principale
- Go
- Stelle
- 1.5k
- Fork
- 390
- Merge medio
- 2g 22h
- PR unite (30g)
- 24
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ethersphere/bee
-
Chequebook deployment uses a fixed 175,000 gas limit; it needs about 630,000 under Glamsterdam (live on Sepolia since 2026-10-06)Forse di nuovo libera @sbackend123 l’ha presa 28 giorni fa e non c’è nessuna pull request aperta. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
ethersphere/bee#5650 · 1 assegnatario ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 22/100
ethersphere/bee#5682 ·
I maintainer di solito rispondono entro 3 giorni
-
ENSv2 is not supported, `resolve failed`Forse già presa @akrem-chabchoub l’ha presa 7 giorni fa. Aperta
ethersphere/bee#5680 · 1 assegnatario ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
ethersphere/bee#5678 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
ethersphere/bee#5666 ·
I maintainer di solito rispondono entro 3 giorni
Tutte le issue di ethersphere/bee
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
dragonflydb/dragonfly-operator#619 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
cloudfoundry/bosh-bootloader#701 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
baremetal: private network check rejects offer-specific options (Private Network 10Gbps / 25Gbps)Forse già presa @lbarrosby l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
scaleway/terraform-provider-scaleway#4587 ·
I maintainer di solito rispondono entro 1 giorno
-
blocked-needs-validation bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
projectcapsule/capsule#2280 ·
I maintainer di solito rispondono entro 1 giorno