Skip to content
A standard library for microservices.
Go Shell
Branch: master
Clone or download
sagikazarmark and peterbourgon Add a span name getter to opencensus endpoint options (#948)
* Add a span name getter to opencensus endpoint options

* Add GetSpanDetails option

* Split GetSpanDetails function

* Simplify getting the name

* Improve documentation

* Simplify attributes

* Update documentation

* Update tracing/opencensus/endpoint_options.go

Co-authored-by: Peter Bourgon <peterbourgon@users.noreply.github.com>
Latest commit cc938d5 Feb 18, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Create FUNDING.yml Oct 9, 2019
auth Update imports to casbin/v2 Jan 6, 2020
circuitbreaker Use stdlib context instead of golang.org/x/net/context Feb 4, 2017
cmd/kitgen Fix build (#917) Oct 3, 2019
endpoint cleaned up code formatting and some doc comments per PR review Jun 18, 2018
examples Clarify rate limiter expressions in addsvc example (#943) Jan 1, 2020
log Fix typo: "thte" -> "the" Feb 14, 2020
metrics Fix typo: "construts" --> "constructs" (#925) Oct 18, 2019
ratelimit Remove dependency on juju Oct 9, 2017
sd Consider SRV records with port 0 as an error (#900) Aug 12, 2019
tracing Add a span name getter to opencensus endpoint options (#948) Feb 17, 2020
transport Add initial go.mod file Jan 6, 2020
util Add backoff package and fix Consul CPU usage (#635) Apr 2, 2018
.build.yml Small fixes to fight entropy and bit-rot (#901) Aug 12, 2019
.gitignore Restore .gitignore and coverage.bash Jun 4, 2017
.travis.yml Small fixes to fight entropy and bit-rot (#901) Aug 12, 2019
CONTRIBUTING.md CONTRIBUTING: update Aug 23, 2016
LICENSE Initial commit Feb 3, 2015
README.md README: updates Jan 12, 2020
circle.yml circle.yml: always use latest Go (#944) Jan 1, 2020
coveralls.bash .travis.yml: run Coveralls, as Drone is gone Jul 20, 2017
docker-compose-integration.yml Add Eureka service discovery implementation Mar 23, 2017
go.mod Remove unnecessary indirect required modules Jan 6, 2020
go.sum Remove unnecessary indirect required modules Jan 6, 2020
lint lint: place here in preparation Jun 7, 2016
update_deps.bash update_deps.bash: breakfixes Oct 6, 2019

README.md

Go kit
Circle CI Travis CI builds.sr.ht status GoDoc Coverage Status Go Report Card Sourcegraph

Go kit is a programming toolkit for building microservices (or elegant monoliths) in Go. We solve common problems in distributed systems and application architecture so you can focus on delivering business value.

Sponsors

Click on Sponsor, above, for more information on sponsorship.

Motivation

Go has emerged as the language of the server, but it remains underrepresented in so-called "modern enterprise" companies like Facebook, Twitter, Netflix, and SoundCloud. Many of these organizations have turned to JVM-based stacks for their business logic, owing in large part to libraries and ecosystems that directly support their microservice architectures.

To reach its next level of success, Go needs more than simple primitives and idioms. It needs a comprehensive toolkit, for coherent distributed programming in the large. Go kit is a set of packages and best practices, which provide a comprehensive, robust, and trustable way of building microservices for organizations of any size.

For more details, see the website, the motivating blog post and the video of the talk. See also the Go kit talk at GopherCon 2015.

Goals

  • Operate in a heterogeneous SOA — expect to interact with mostly non-Go-kit services
  • RPC as the primary messaging pattern
  • Pluggable serialization and transport — not just JSON over HTTP
  • Operate within existing infrastructures — no mandates for specific tools or technologies

Non-goals

  • Supporting messaging patterns other than RPC (for now) — e.g. MPI, pub/sub, CQRS, etc.
  • Re-implementing functionality that can be provided by adapting existing software
  • Having opinions on operational concerns: deployment, configuration, process supervision, orchestration, etc.

Contributing

Please see CONTRIBUTING.md. Thank you, contributors!

Dependency management

Go kit is modules aware, and we encourage users to use the standard modules tooling. But Go kit is at major version 0, so it should be compatible with non-modules environments.

Related projects

Projects with a ★ have had particular influence on Go kit's design (or vice-versa).

Service frameworks

  • gizmo, a microservice toolkit from The New York Times ★
  • go-micro, a microservices client/server library ★
  • gotalk, async peer communication protocol & library
  • Kite, a micro-service framework
  • gocircuit, dynamic cloud orchestration

Individual components

Web frameworks

Additional reading

You can’t perform that action at this time.