Skip to content

Commit

Permalink
Adds logs for the state of the trace pull server (#1401)
Browse files Browse the repository at this point in the history
As part of migrating to Knuu for the celestia-app e2e tests, I debugged
the tracing feature which required adding log messages to verify that
the tracer pull server is up and running. This PR includes those log
messages, which previously lived in a custom branch and were not
available to everyone.
  • Loading branch information
staheri14 authored Jun 21, 2024
1 parent 056df6c commit 2e81d61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/trace/fileserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ func (lt *LocalTracer) servePullData() {
if err != nil {
lt.logger.Error("trace pull server failure", "err", err)
}
lt.logger.Info("trace pull server started", "address", lt.cfg.Instrumentation.TracePullAddress)
}

// GetTable downloads a table from the server and saves it to the given directory. It uses a multipart
Expand Down
1 change: 1 addition & 0 deletions pkg/trace/local_tracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ func NewLocalTracer(cfg *config.Config, logger log.Logger, chainID, nodeID strin

go lt.drainCanal()
if cfg.Instrumentation.TracePullAddress != "" {
logger.Info("starting pull server", "address", cfg.Instrumentation.TracePullAddress)
go lt.servePullData()
}

Expand Down

0 comments on commit 2e81d61

Please sign in to comment.