883 B
883 B
go-server-with-otel
Template for a go HTTP + GRPC server with OTEL support. Uses the go-app framework to easily bootstrap a new app with all the bells and whistles.
The provided proto returns a random fact, and serves only as a reference. It has support for grpc-gateway, and produces an openapi2/swagger spec for use with postman, etc..
Getting Started
- Rename your package using
make rename NAME=my.gitremote.com/pathto/repo
- Review the config struct, adding any app-specific configuration
- This will be merged with the go-app config, giving logging/http/grpc configuration for free
- Generate a new json schema, for use with your config.yaml:
make schema
- Ensure you have yaml+json tags
- The yaml-language-server lsp plugin for your favorite editor should
pull in the schema using the comment in
config.yaml
- Implement your things