Skip to content

Add Structured Logging for Better Observability #500

@cendhu

Description

@cendhu

Issue: The codebase uses unstructured logging extensively, making it difficult to parse logs programmatically.

Examples:

logger.Debugf("Batch containing %d TXs was stored in the being validated list", batchSize)
logger.Infof("Client [%d] successfully created and connected to sv at %s", i, label)

Recommendation: Adopt structured logging:

logger.Debug("batch stored for validation",
    "batch_size", batchSize,
    "service", "signature_verifier")

logger.Info("client connected",
    "client_id", i,
    "endpoint", label,
    "service", "signature_verifier")

Impact: Medium - Significantly improves log analysis and monitoring

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions