Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: disable buggy wasm metrics #1235

Merged
merged 2 commits into from
Sep 12, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions app/app_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ import (

"github.com/cosmos/cosmos-sdk/x/consensus"

"github.com/prometheus/client_golang/prometheus"

servertypes "github.com/cosmos/cosmos-sdk/server/types"
"github.com/spf13/cast"

genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"

Expand Down Expand Up @@ -125,9 +122,12 @@ func GetWasmOpts(
reactionsKeeper reactionskeeper.Keeper,
) []wasmkeeper.Option {
var wasmOpts []wasmkeeper.Option
if cast.ToBool(appOpts.Get("telemetry.enabled")) {
wasmOpts = append(wasmOpts, wasmkeeper.WithVMCacheMetrics(prometheus.DefaultRegisterer))
}
// FIXME (wasmd-1575): This is commented out temporarily because it causes panics in telemetry server due to buggy
// Bug has been fixed here: https://github.com/CosmWasm/wasmd/pull/1575
// and will be released in v0.42
// if cast.ToBool(appOpts.Get("telemetry.enabled")) {
// wasmOpts = append(wasmOpts, wasmkeeper.WithVMCacheMetrics(prometheus.DefaultRegisterer))
// }
RiccardoM marked this conversation as resolved.
Show resolved Hide resolved

customQueryPlugin := NewDesmosCustomQueryPlugin(
cdc,
Expand Down
Loading