* feat: added trace export feat: added types for export feat: added support for complex queries fix: added correct open api spec fix: updated unit tests fix: type handling logic fix: improve order by feat: added integration tests fix: address comments * fix: address comments * fix: removed nits * fix: go fmt * fix: rebased main and ran generate cmd * fix: renamed method * fix: address comments * fix: lint error * fix: lint error * fix: ran yarn generate:api * fix: address comments * fix: address comments * fix: typo * fix: better names for functions * fix: added unit tests, renamed file, added validation * fix: update integration test * fix: removed get method for export * fix: yarn generate:api * chore: yarn generate:api * fix: rename file --------- Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
Go
This document provides an overview of contributing to the SigNoz backend written in Go. The SigNoz backend is built with Go, focusing on performance, maintainability, and developer experience. We strive for clean, idiomatic code that follows established Go practices while addressing the unique needs of an observability platform.
We adhere to three primary style guides as our foundation:
- Effective Go - For writing idiomatic Go code
- Code Review Comments - For understanding common comments in code reviews
- Google Style Guide - Additional practices from Google
We recommend (almost enforce) reviewing these guides before contributing to the codebase. They provide valuable insights into writing idiomatic Go code and will help you understand our approach to backend development. In addition, we have a few additional rules that make certain areas stricter than the above which can be found in area-specific files in this package:
- Abstractions - When to introduce new types and intermediate representations
- Errors - Structured error handling
- Endpoint - HTTP endpoint patterns
- Flagger - Feature flag patterns
- Handler - HTTP handler patterns
- Integration - Integration testing
- Provider - Dependency injection and provider patterns
- Packages - Naming, layout, and conventions for
pkg/packages - Service - Managed service lifecycle with
factory.Service - SQL - Database and SQL patterns