Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

643 B
Raw Blame

paths: - "**/*.go"

Go comments

The bar is the comments rule: nothing where the code is self-explanatory.

  • Names carry the meaning. Make function, type, and variable names self-explanatory so the comment is unnecessary in the first place. If a comment is needed to explain what a function does, fix the name, not the comment.
  • Godoc: Skip comments that merely restate the identifier. Document only non-obvious behavior, constraints, formats, and edge cases.
  • Generated code: If the comment is emitted by an external codegen tool, leave it as-is — do not add or trim comments in generated files.