Skip to content
Closed
Show file tree
Hide file tree
Changes from 135 commits
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
1cf5e6c
feat: add tracing
aaronc Oct 29, 2025
a207f94
work on otel tracer impl
aaronc Oct 29, 2025
ee0bfb3
add basic baseapp tracing
aaronc Oct 29, 2025
d5f5ea4
latest WIP
aaronc Oct 30, 2025
47f83e8
add trace exporter setup
aaronc Oct 30, 2025
7fafce3
fixes
aaronc Oct 30, 2025
bdba035
simapp setup, make tracers wrap loggers
aaronc Oct 30, 2025
25e3135
add test setup
aaronc Oct 30, 2025
5c7e464
fix shutdown order
aaronc Oct 30, 2025
d71f7c1
block trace nesting
aaronc Oct 30, 2025
56b215a
update metrics config and instrumentation
aaronc Oct 30, 2025
f9ce55c
start adding otel metric config
aaronc Oct 31, 2025
3fff00f
migrate to pure otel setup
aaronc Oct 31, 2025
5077567
fixes
aaronc Oct 31, 2025
31536b6
add basic metrics
aaronc Oct 31, 2025
c922688
add telemetry shutdown hook
aaronc Oct 31, 2025
ed891cc
docs, cleanup
aaronc Oct 31, 2025
f685bd4
WIP on removing go-metrics
aaronc Oct 31, 2025
42da2f7
Merge branch 'main' of github.com:cosmos/cosmos-sdk into aaronc/traci…
aaronc Oct 31, 2025
699f5d3
setup sim test flag
aaronc Oct 31, 2025
5df2460
integrate slog logging
aaronc Oct 31, 2025
1c84edb
update to use official env var
aaronc Oct 31, 2025
46e4bcb
add README.md
aaronc Nov 3, 2025
f0c3955
delete spaces
aaronc Nov 3, 2025
7dfb754
setup TestingMain
aaronc Nov 3, 2025
1ce344b
update suggested config in README.md
aaronc Nov 3, 2025
edbae92
add otel custom config options
aaronc Nov 3, 2025
0f8085a
add otel custom config options
aaronc Nov 3, 2025
03b6069
add more instrumentation
aaronc Nov 3, 2025
c4dbd07
remove pretty print
aaronc Nov 4, 2025
2a1dffd
Merge branch 'main' of github.com:cosmos/cosmos-sdk into aaronc/traci…
aaronc Nov 6, 2025
7b3ee34
add hashicorp/go-metrics otel/compatibility layer
aaronc Nov 6, 2025
06e1245
bring back server telemetry config, revert unrelated changes
aaronc Nov 6, 2025
cf720f9
address review comments, remove timing histograms
aaronc Nov 6, 2025
743fdc9
support otel routing through legacy metrics config
aaronc Nov 6, 2025
5bfe192
go mod tidy, bring in additional config from iavlx branch
aaronc Nov 6, 2025
4f50709
revert unrelated changes
aaronc Nov 7, 2025
c3e781d
bug fix & better go-metric -> otel naming
aaronc Nov 7, 2025
6ddac1d
propagate context better and add some basic tracing for grpc queries
aaronc Nov 11, 2025
70e8fa8
basic log unification
aaronc Nov 11, 2025
2258c1f
Merge branch 'main' of github.com:cosmos/cosmos-sdk into aaronc/traci…
aaronc Nov 13, 2025
0968a22
go mod tidy
aaronc Nov 13, 2025
6fb271d
update CHANGELOG.md, UPGRADING.md and remove example telemetry config…
aaronc Nov 13, 2025
90885bb
update CHANGELOG.md, UPGRADING.md
aaronc Nov 13, 2025
5e9c6ba
update docs
aaronc Nov 13, 2025
a1f27c8
revert any logging configuration, other than setting up the otel logg…
aaronc Nov 14, 2025
6c9cde1
Merge branch 'main' of github.com:cosmos/cosmos-sdk into aaronc/traci…
aaronc Nov 14, 2025
75279fa
lint fix
aaronc Nov 14, 2025
10436c9
Update UPGRADING.md
aaronc Nov 14, 2025
b870b7c
re-add telemetry toml
technicallyty Nov 17, 2025
3b2440c
add deprecation notice to telemetry toml config
technicallyty Nov 18, 2025
2c20c90
remove legacy metrics init in opentelemetry init
technicallyty Nov 18, 2025
033e51d
Merge remote-tracking branch 'origin/main' into aaronc/tracing-metrics
technicallyty Nov 18, 2025
ebe7fd9
re-add changelog entries
technicallyty Nov 18, 2025
3a188c1
Merge remote-tracking branch 'origin/main' into aaronc/tracing-metrics
technicallyty Nov 19, 2025
9e09f53
changelog.md
technicallyty Nov 19, 2025
8b4e5f2
shutdown only if sdk set, and error if sink is set to otel but no con…
technicallyty Nov 21, 2025
6c961ea
add a note to histograms
technicallyty Nov 21, 2025
6081f68
Merge branch 'main' into aaronc/tracing-metrics
aljo242 Nov 21, 2025
14fa35a
Merge branch 'aaronc/tracing-metrics' of ssh://github.com/cosmos/cosm…
technicallyty Nov 21, 2025
2649644
upgrading.md update
technicallyty Nov 21, 2025
aa22513
remove stuff about log
technicallyty Nov 24, 2025
f48d89f
add grpc options to client and server
technicallyty Nov 24, 2025
575a12f
make propagators configurable
technicallyty Nov 25, 2025
e817154
fix issue with otel spans not showing up in sdk context
technicallyty Nov 25, 2025
8e992c7
get rid of embedding sdk context into grpc context since we can use s…
technicallyty Nov 25, 2025
a8dddd8
delete the lines
technicallyty Nov 25, 2025
bfeb28d
add type attribute for checktx tracer
technicallyty Nov 25, 2025
f320bfe
add attribtues to prepareproposal
technicallyty Nov 25, 2025
107dbd4
add attribtues to prepareproposal
technicallyty Nov 25, 2025
3313d91
Merge remote-tracking branch 'origin/main' into aaronc/tracing-metrics
technicallyty Nov 25, 2025
902ff52
remove
technicallyty Nov 26, 2025
0ecf579
tidy-all
technicallyty Nov 26, 2025
10e286f
update PreBlock span handling
technicallyty Nov 26, 2025
cfaffe2
update abci methods to correctly record span errors and stuff
technicallyty Nov 26, 2025
336805c
feat: initialize noop providers when otel is disabled (#25622)
aaronc Dec 1, 2025
49f752a
fix hash issue
technicallyty Dec 2, 2025
e27a022
Merge branch 'aaronc/tracing-metrics' of ssh://github.com/cosmos/cosm…
technicallyty Dec 2, 2025
cea27dd
telemetry is configured via start/init
technicallyty Dec 2, 2025
c73c140
remove prints, use const otel file name
technicallyty Dec 2, 2025
72fa3e1
Merge remote-tracking branch 'origin/main' into aaronc/tracing-metrics
technicallyty Dec 2, 2025
8b265b0
reformat upgrading.md
technicallyty Dec 2, 2025
4481d57
tidy-all
technicallyty Dec 2, 2025
51a6537
alternatively allow otel to be configured via env var
technicallyty Dec 3, 2025
fdac609
readjust the readme based on changes
technicallyty Dec 3, 2025
86d6325
fix issue with module_test.go
technicallyty Dec 3, 2025
45e9739
Merge branch 'main' into aaronc/tracing-metrics
aljo242 Dec 3, 2025
faf5c1d
put ctx argument first
technicallyty Dec 4, 2025
f665c6c
cnt -> counter
technicallyty Dec 4, 2025
968efa4
defer the cancel
technicallyty Dec 4, 2025
1ae88a0
rename open telemetry SDK variable
technicallyty Dec 4, 2025
a4877ea
document cosmos extra, and upate the example
technicallyty Dec 4, 2025
6c2a994
fix all the linting errors
technicallyty Dec 4, 2025
92783e8
change filemode
technicallyty Dec 5, 2025
d868512
Merge branch 'main' into aaronc/tracing-metrics
technicallyty Dec 8, 2025
d66708e
wip
technicallyty Dec 10, 2025
cd30eb1
wip
technicallyty Dec 15, 2025
1679ff6
Merge remote-tracking branch 'origin/main' into technicallyty/otel-lo…
technicallyty Dec 15, 2025
18d9ddb
log replacer
technicallyty Dec 16, 2025
33a2db1
parity with old logger
technicallyty Dec 16, 2025
d0f97da
restore upgrade logic
technicallyty Dec 16, 2025
a0b45d4
simplify
technicallyty Dec 16, 2025
95aba77
todo
technicallyty Dec 18, 2025
fb2348e
use zerolog's formatter as a handler
technicallyty Dec 19, 2025
29420f3
simplify logger
technicallyty Dec 19, 2025
4b532af
update readme
technicallyty Dec 19, 2025
034654c
Merge branch 'main' into technicallyty/otel-logging
technicallyty Dec 19, 2025
d38dc10
changelog
technicallyty Dec 19, 2025
ca690d9
fix ci issues
technicallyty Dec 19, 2025
57b827d
update one log as example
technicallyty Dec 19, 2025
7f77a81
tidy
technicallyty Jan 5, 2026
154c774
mod files
technicallyty Jan 6, 2026
cdc5ba1
use zerolog if otel is not enabled
technicallyty Jan 6, 2026
019dae0
update docs
technicallyty Jan 6, 2026
c310570
update readme
technicallyty Jan 6, 2026
77a276e
tidy mods, replaces, and fix golden test
technicallyty Jan 6, 2026
a2d77cb
Merge remote-tracking branch 'origin/main' into technicallyty/otel-lo…
technicallyty Jan 6, 2026
553512b
no lint
technicallyty Jan 6, 2026
a6b7d96
lint fix
technicallyty Jan 6, 2026
189b46e
fix lint
technicallyty Jan 6, 2026
fcb9067
fix lint again...
technicallyty Jan 6, 2026
3f39296
fix options docs
technicallyty Jan 6, 2026
b878d77
update readme
technicallyty Jan 6, 2026
86190db
update readme
technicallyty Jan 6, 2026
f14fdca
update upgrading
technicallyty Jan 6, 2026
c8daf44
add comment why we cant use zerolog bridge
technicallyty Jan 6, 2026
486d4e8
reference upgrading in changelog
technicallyty Jan 6, 2026
0530ec2
remove pointers for config
technicallyty Jan 6, 2026
e33d030
re-add missing test
technicallyty Jan 6, 2026
e36b09e
add with_test
technicallyty Jan 7, 2026
b51b61f
use slog info name
technicallyty Jan 7, 2026
79707fd
const default logger name
technicallyty Jan 7, 2026
f10baa3
re-add app_di
technicallyty Jan 7, 2026
32b68f9
re-add flag on app.go
technicallyty Jan 7, 2026
0aff0fd
fix import order
technicallyty Jan 7, 2026
a39c985
remove contextual methods, add context attachment
technicallyty Jan 7, 2026
f0083d7
fix mocks
technicallyty Jan 7, 2026
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
87 changes: 86 additions & 1 deletion UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,89 @@ The [README.md](telemetry/README.md) in the `telemetry` package provides more de
1. application developers should follow the official [go OpenTelemetry](https://pkg.go.dev/go.opentelemetry.io/otel) guidelines when instrumenting their applications.
2. node operators who want to configure OpenTelemetry exporters should set the `OTEL_EXPERIMENTAL_CONFIG_FILE` environment variable to the path of a yaml file which follows the OpenTelemetry declarative configuration format specified here: https://pkg.go.dev/go.opentelemetry.io/contrib/otelconf. As long as the `telemetry` package has been imported somewhere (it should already be imported if you are using the SDK), OpenTelemetry will be initialized automatically based on the configuration file.

NOTE: the go implementation of [otelconf](https://pkg.go.dev/go.opentelemetry.io/contrib/otelconf) is still under development and we will update our usage of it as it matures.
NOTE: the go implementation of [otelconf](https://pkg.go.dev/go.opentelemetry.io/contrib/otelconf) is still under development and we will update our usage of it as it matures.

## Log v2

The log package has been refactored to support OpenTelemetry tracing correlation. If you have basic usage of the logger, such as getting it from sdk.Context and logging to the console; nothing changes. You are unaffected.

If you implement your own logger, or setup the logger manually, a few things have been changed.


### Logger Interface

The interface has 4 new methods:

```go
// InfoContext takes a context, message and key/value pairs and logs with level INFO.
// The context is used for trace/span correlation when using OpenTelemetry.
InfoContext(ctx context.Context, msg string, keyVals ...any)

// WarnContext takes a context, message and key/value pairs and logs with level WARN.
// The context is used for trace/span correlation when using OpenTelemetry.
WarnContext(ctx context.Context, msg string, keyVals ...any)

// ErrorContext takes a context, message and key/value pairs and logs with level ERROR.
// The context is used for trace/span correlation when using OpenTelemetry.
ErrorContext(ctx context.Context, msg string, keyVals ...any)

// DebugContext takes a context, message and key/value pairs and logs with level DEBUG.
// The context is used for trace/span correlation when using OpenTelemetry.
DebugContext(ctx context.Context, msg string, keyVals ...any)
```

These methods extract the trace ID from the context so that logs are correlated with traces.


### Constructor

If you construct your own logger, the constructor function arguments and option names have changed.

Old constructor:
```go
func NewLogger(dst io.Writer, options ...Option) Logger
```

New constructor:
```go
func NewLogger(name string, opts ...Option) Logger
```

### Options

All option functions are now prefixed with `With` to make option discovery easier and more clear.

Example:

Before:
```go
func FilterOption(filter FilterFunc) Option
```

After:
```go
func WithFilter(filter FilterFunc) Option
```

Additionally, new options have been added. See log/options.go for all usable options.

### Default Behavior

By default, the logger will log to the console AND to OpenTelemetry if a logger provider has been set in the optional OpenTelemetry configuration.

For production nodes, we have introduced a new flag, `--log_no_console` to disable the overhead of logging to the console. This is useful in situations where you ONLY want OpenTelemetry log forwarding.

### Log Levels

Levels have been changed to achieve parity with slog. The supported levels are:

- info
- debug
- warn
- error

The following levels are no longer supported:

- trace
- fatal
- panic
4 changes: 2 additions & 2 deletions baseapp/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const (
)

func (app *BaseApp) InitChain(req *abci.RequestInitChain) (*abci.ResponseInitChain, error) {
_, span := tracer.Start(context.Background(), "InitChain")
ctx, span := tracer.Start(context.Background(), "InitChain")
defer span.End()

if req.ChainId != app.chainID {
Expand All @@ -51,7 +51,7 @@ func (app *BaseApp) InitChain(req *abci.RequestInitChain) (*abci.ResponseInitCha
// On a new chain, we consider the init chain block height as 0, even though
// req.InitialHeight is 1 by default.
initHeader := cmtproto.Header{ChainID: req.ChainId, Time: req.Time}
app.logger.Info("InitChain", "initialHeight", req.InitialHeight, "chainID", req.ChainId)
app.logger.InfoContext(ctx, "InitChain", "initialHeight", req.InitialHeight, "chainID", req.ChainId)

// Set the initial height, which will be used to determine if we are proposing
// or processing the first block or not.
Expand Down
2 changes: 1 addition & 1 deletion baseapp/baseapp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func NewBaseAppSuite(t *testing.T, opts ...func(*baseapp.BaseApp)) *BaseAppSuite

txConfig := authtx.NewTxConfig(cdc, authtx.DefaultSignModes)
db := dbm.NewMemDB()
logger := log.NewLogger(os.Stdout, log.ColorOption(false))
logger := log.NewLogger("baseapp-test", log.WithConsoleWriter(os.Stdout), log.WithColor(false))

app := baseapp.NewBaseApp(t.Name(), logger, db, txConfig.TxDecoder(), opts...)
require.Equal(t, t.Name(), app.Name())
Expand Down
1 change: 1 addition & 0 deletions client/flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ const (
FlagVerboseLogLevel = "verbose_log_level"
FlagLogFormat = "log_format"
FlagLogNoColor = "log_no_color"
FlagLogNoConsole = "log_no_console"
Copy link
Member

@swift1337 swift1337 Jan 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this refactoring is a good opportunity to fix flags' naming:

  • --log-level
  • --log-level-verbose (what's that?)
  • --log-format
  • --log-no-color
  • --log-disable-stdout → is a more suitable name IMO

Copy link
Contributor Author

@technicallyty technicallyty Jan 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trying to reduce API breakage here, leaning towards keeping the flags the same

as for --log-disable-stdout, kinda lean against that as well. we can log to stderr as well, and using a flag with that name could imply stderr logs will display, when the flag currently disables all console output entirely.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fine to break a couple of flags since this PR already introduces breaking changes. Especially, since current log flags have this weird -- + _ casing.

we can log to stderr as well

good call, maybe then --log-disable-console ?

)

// List of supported output formats
Expand Down
2 changes: 1 addition & 1 deletion client/pruning/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Supported app-db-backend types include 'goleveldb', 'rocksdb', 'pebbledb'.`,
// in our test, it's important to close db explicitly for pebbledb to write to disk.
defer db.Close()

logger := log.NewLogger(cmd.OutOrStdout())
logger := log.NewLogger("pruning", log.WithConsoleWriter(cmd.OutOrStdout()))
app := appCreator(logger, db, nil, vp)
cms := app.CommitMultiStore()

Expand Down
2 changes: 1 addition & 1 deletion client/snapshot/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func ExportSnapshotCmd(appCreator servertypes.AppCreator) *cobra.Command {
if err != nil {
return err
}
logger := log.NewLogger(cmd.OutOrStdout())
logger := log.NewLogger("snapshot", log.WithConsoleWriter(cmd.OutOrStdout()))
app := appCreator(logger, db, nil, ctx.Viper)

if height == 0 {
Expand Down
2 changes: 1 addition & 1 deletion client/snapshot/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func RestoreSnapshotCmd(appCreator servertypes.AppCreator) *cobra.Command {
if err != nil {
return err
}
logger := log.NewLogger(cmd.OutOrStdout())
logger := log.NewLogger("snapshot", log.WithConsoleWriter(cmd.OutOrStdout()))
app := appCreator(logger, db, nil, ctx.Viper)

sm := app.SnapshotManager()
Expand Down
2 changes: 2 additions & 0 deletions client/v2/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ require (
github.com/zondax/ledger-go v1.0.1 // indirect
go.etcd.io/bbolt v1.4.0 // indirect
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
go.opentelemetry.io/contrib/bridges/otelslog v0.14.0 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.64.0 // indirect
go.opentelemetry.io/contrib/instrumentation/host v0.64.0 // indirect
go.opentelemetry.io/contrib/instrumentation/runtime v0.64.0 // indirect
Expand Down Expand Up @@ -207,6 +208,7 @@ require (
// <temporary replace>
// )
replace (
cosmossdk.io/log => ../../log
cosmossdk.io/store => ../../store
github.com/cosmos/cosmos-sdk => ../../.
github.com/tidwall/btree => github.com/cosmos/btree v0.0.0-20250924232609-2c6195d95951
Expand Down
4 changes: 2 additions & 2 deletions client/v2/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ cosmossdk.io/depinject v1.2.1 h1:eD6FxkIjlVaNZT+dXTQuwQTKZrFZ4UrfCq1RKgzyhMw=
cosmossdk.io/depinject v1.2.1/go.mod h1:lqQEycz0H2JXqvOgVwTsjEdMI0plswI7p6KX+MVqFOM=
cosmossdk.io/errors v1.0.2 h1:wcYiJz08HThbWxd/L4jObeLaLySopyyuUFB5w4AGpCo=
cosmossdk.io/errors v1.0.2/go.mod h1:0rjgiHkftRYPj//3DrD6y8hcm40HcPv/dR4R/4efr0k=
cosmossdk.io/log v1.6.1 h1:YXNwAgbDwMEKwDlCdH8vPcoggma48MgZrTQXCfmMBeI=
cosmossdk.io/log v1.6.1/go.mod h1:gMwsWyyDBjpdG9u2avCFdysXqxq28WJapJvu+vF1y+E=
cosmossdk.io/math v1.5.3 h1:WH6tu6Z3AUCeHbeOSHg2mt9rnoiUWVWaQ2t6Gkll96U=
cosmossdk.io/math v1.5.3/go.mod h1:uqcZv7vexnhMFJF+6zh9EWdm/+Ylyln34IvPnBauPCQ=
cosmossdk.io/schema v1.1.0 h1:mmpuz3dzouCoyjjcMcA/xHBEmMChN+EHh8EHxHRHhzE=
Expand Down Expand Up @@ -737,6 +735,8 @@ go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk=
go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64=
go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y=
go.opentelemetry.io/contrib/bridges/otelslog v0.14.0 h1:eypSOd+0txRKCXPNyqLPsbSfA0jULgJcGmSAdFAnrCM=
go.opentelemetry.io/contrib/bridges/otelslog v0.14.0/go.mod h1:CRGvIBL/aAxpQU34ZxyQVFlovVcp67s4cAmQu8Jh9mc=
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.64.0 h1:RN3ifU8y4prNWeEnQp2kRRHz8UwonAEYZl8tUzHEXAk=
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.64.0/go.mod h1:habDz3tEWiFANTo6oUE99EmaFUrCNYAAg3wiVmusm70=
go.opentelemetry.io/contrib/instrumentation/host v0.64.0 h1:/o7fG3CXOlVK8fUzK+p8CyHU9Opha3IL4DZR3UXGZ1w=
Expand Down
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ require (
github.com/mdp/qrterminal/v3 v3.2.1
github.com/prometheus/client_golang v1.23.2
github.com/prometheus/common v0.67.5
github.com/rs/zerolog v1.34.0
github.com/spf13/cast v1.10.0
github.com/spf13/cobra v1.10.2
github.com/spf13/pflag v1.0.10
Expand Down Expand Up @@ -208,6 +207,7 @@ require (
github.com/rcrowley/go-metrics v0.0.0-20250401214520-65e299d6c5c9 // indirect
github.com/rogpeppe/go-internal v1.14.1 // indirect
github.com/rs/cors v1.11.1 // indirect
github.com/rs/zerolog v1.34.0 // indirect
github.com/sagikazarmark/locafero v0.11.0 // indirect
github.com/sasha-s/go-deadlock v0.3.6 // indirect
github.com/shirou/gopsutil/v4 v4.25.11 // indirect
Expand All @@ -227,6 +227,7 @@ require (
github.com/zondax/ledger-go v1.0.1 // indirect
go.etcd.io/bbolt v1.4.0 // indirect
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
go.opentelemetry.io/contrib/bridges/otelslog v0.14.0 // indirect
go.opentelemetry.io/contrib/detectors/gcp v1.38.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.62.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.15.0 // indirect
Expand Down Expand Up @@ -268,6 +269,7 @@ require (

// Below are the long-lived replace of the Cosmos SDK
replace (
cosmossdk.io/log => ./log
// use cosmos fork of keyring
github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0
// dgrijalva/jwt-go is deprecated and doesn't receive security updates.
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ cosmossdk.io/depinject v1.2.1 h1:eD6FxkIjlVaNZT+dXTQuwQTKZrFZ4UrfCq1RKgzyhMw=
cosmossdk.io/depinject v1.2.1/go.mod h1:lqQEycz0H2JXqvOgVwTsjEdMI0plswI7p6KX+MVqFOM=
cosmossdk.io/errors v1.0.2 h1:wcYiJz08HThbWxd/L4jObeLaLySopyyuUFB5w4AGpCo=
cosmossdk.io/errors v1.0.2/go.mod h1:0rjgiHkftRYPj//3DrD6y8hcm40HcPv/dR4R/4efr0k=
cosmossdk.io/log v1.6.1 h1:YXNwAgbDwMEKwDlCdH8vPcoggma48MgZrTQXCfmMBeI=
cosmossdk.io/log v1.6.1/go.mod h1:gMwsWyyDBjpdG9u2avCFdysXqxq28WJapJvu+vF1y+E=
cosmossdk.io/math v1.5.3 h1:WH6tu6Z3AUCeHbeOSHg2mt9rnoiUWVWaQ2t6Gkll96U=
cosmossdk.io/math v1.5.3/go.mod h1:uqcZv7vexnhMFJF+6zh9EWdm/+Ylyln34IvPnBauPCQ=
cosmossdk.io/schema v1.1.0 h1:mmpuz3dzouCoyjjcMcA/xHBEmMChN+EHh8EHxHRHhzE=
Expand Down Expand Up @@ -854,6 +852,8 @@ go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk=
go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64=
go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y=
go.opentelemetry.io/contrib/bridges/otelslog v0.14.0 h1:eypSOd+0txRKCXPNyqLPsbSfA0jULgJcGmSAdFAnrCM=
go.opentelemetry.io/contrib/bridges/otelslog v0.14.0/go.mod h1:CRGvIBL/aAxpQU34ZxyQVFlovVcp67s4cAmQu8Jh9mc=
go.opentelemetry.io/contrib/detectors/gcp v1.38.0 h1:ZoYbqX7OaA/TAikspPl3ozPI6iY6LiIY9I8cUfm+pJs=
go.opentelemetry.io/contrib/detectors/gcp v1.38.0/go.mod h1:SU+iU7nu5ud4oCb3LQOhIZ3nRLj6FNVrKgtflbaf2ts=
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.64.0 h1:RN3ifU8y4prNWeEnQp2kRRHz8UwonAEYZl8tUzHEXAk=
Expand Down
2 changes: 2 additions & 0 deletions log/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ Each entry must include the Github issue reference in the following format:

## [Unreleased]

* [#25701](https://github.com/cosmos/cosmos-sdk/pull/25701) Introduce log v2, enabling OpenTelemetry logging with slog. The logging interface has been updated to accommodate Context logging methods, which allows correlation of logs with traces. To see the impact of these changes, check out the [Upgrade](../UPGRADING.md) document.

## [v1.6.0](https://github.com/cosmos/cosmos-sdk/releases/tag/log/v1.6.0) - 2025-05-13

* [#24720](https://github.com/cosmos/cosmos-sdk/pull/24720) add `VerboseModeLogger` extension interface and `VerboseLevel` configuration option for increasing log verbosity during sensitive operations such as upgrades.
Expand Down
Loading
Loading