Changelog History
-
v0.10.0
February 17, 2020 -
v0.9.0 Changes
June 27, 2019๐ A new major release with incremental improvements and enhancements. Major features include support for AWS Lambda as a transport, and improved error handling in all transports. Thanks to the 26 contributors who contributed to this release! ๐
๐ Note that this release includes breaking changes in the metrics package , please review the documentation for changes.
๐ Bug fixes
- sd/etcdv3: serve the keepalive response channel (#803) (thanks @fangdingjun)
- โ tracing/zipkin: swaps tested conditions (#812) (thanks @jcchavezs)
- metrics/influx: Fix InfluxDB import path (#826) (thanks @flowchartsman)
- kitgen: normalize backSlashes in path (#831) (thanks @obeyda)
- sd/etcdv3: fix dead loop (#848) (thanks @zii)
- sd/zk: fix:
ProtectedEphemeralSequential
in the wrong zk path (#849) (thanks @RedDragonet) - metrics/cloudwatch2: fix context in Send() (#857) (thanks @h8liu)
- sd: fix data race (#865) (thanks @toffaletti)
- tracing/opentracing: fix port assignment (#866) (thanks @kevinreed8263)
- โก๏ธ transport/nats: Update imports (#881) (thanks @wallyqs)
- โ metrics/prometheus: fix for latest HEAD (#885)
- metrics/dogstatsd: Drop metrics according to sample rate (#884) (thanks @martin-sucha)
โจ Enhancements
- ๐ฒ log: Support logrus.Field logger in the logrus adapter (#793) (thanks @sagikazarmark)
- transport/amqp: Add amqp.Delivery to the request func (#802) (thanks @ValeryPiashchynski)
- transport/http: adding request and response encoders for Protobuf (#809) (thanks @jprobinson)
- tracing/zipkin: add request sampler (#813) (thanks @jcchavezs)
- tracing/opentracing: Change span injection/extraction from HTTP request (#821) (thanks @nboukeffa)
- 0๏ธโฃ tracing/opentracing: Use opencensus' DefaultSampler instead of AlwaysSample as default (#830) (thanks @rueian)
- metrics: Make Send/Write Loop context aware (#837) (thanks @jlordiales)
- ๐ transport/awslambda: add support (#815) (thanks @suekto-andreas)
- transport/amqp: add NopResponse option (#850) (thanks @mattfung)
- ๐ฒ log: add a log adapter for zap.Logger (#855) (thanks @MaruHyl)
- transport: Implement transport level error handlers (#863) (thanks @sagikazarmark)
- transport/nats: Use given context in NATS endpoint (#876) (thanks @nsmith5)
- โก๏ธ metrics/cloudwatch2: Update cloudwatch2 to latest upstream API (#878) (thanks @nsmith5)
๐ Documentation, examples, tests
- misc: fix a few misspellings (#797) (thanks @dvrkps)
- examples: Replace "x/net/context" import with "context" (#810) (thanks @marselester)
- โ metrics/prometheus: Fix test to accommodate new Prometheus metric output (#820)
- ๐ kitgen: fix kitgen test in the windows (#840) (thanks @runner)
- ๐ misc: add integration with builds.sr.ht (#842)
- ๐ฒ log/level: improve examples (#845)
- misc: code improvements (#868) (thanks @sosiska)
- โ sd/{etcd,etcdv3}: disable flaky integration tests (#883)
- โก๏ธ README: Update Gin framework homepage url (#888) (thanks @yellowmint)
-
v0.8.0 Changes
November 10, 2018๐ A major release! Featuring NATS and AMPQ transports, many other smaller enhancements, and many bug fixes. Thanks to the 25 contributors who made big contributions to this release! ๐๏ธ
๐ Bug fixes
- ๐ Fix Client.Endpoint to not cancel when bufferedStream (#776) (thanks @xescugc)
- ๐ Fix Consul SD loop exiting on EOF (#788) (thanks @kcajmagic)
- โ Add backoff package and fix Consul CPU usage (#635) (thanks @nicot)
- ๐ Fix race condition in NATS transport tests (#705) (thanks @nussjustin)
- ๐ Fix pact test due to breaking api change (#720) (thanks @basvanbeek)
- โ Add FinalizerFunc to NATS transport (#790) (thanks @kirooha)
- ๐ Fix etcdv3 registrar tests (#724) (thanks @basvanbeek)
- JSONRPC: add id from request to response (#742) (thanks @wangzuo)
- ๐ Fix etcd import path (#756) (thanks @h8liu)
- ๐ฆ Rename 'package log' to 'log package' to fix godoc link handling. (#765) (thanks @bx2)
โจ Enhancements
- NATS transport (#680) (thanks @kirooha)
- AMQP Transport (#746) (thanks @mattfung)
- Metrics - Influx StatsD (#664) (#688) (thanks @james-r-smith)
- HTTPClient interface (#754) (thanks @drscre)
- โ Add casbin for authorization (#787) (thanks @suekto-andreas)
- โ Add logrus adapter for Logger interface (#752) (#759) (thanks @aswinmprabhu)
- ๐จ Refactor (lint/unconvert): remove base64 call returns a string (#717) (thanks @mishudark)
- ๐ Fix function names in JWT examples (#723) (thanks @zachwalton)
- metrics/internal/convert: use method value insetad of lambda (#767) (thanks @quasilyte)
- โ
metrics/teststat: replace
x = x <op> y
withx <op>= y
(#769) (thanks @quasilyte) - ๐ Fix Prometheus tests (#789)
- ๐ Circle 2.0 support (#749, #771)
๐ Documentation, examples, and testing
- ๐ Fix minor comment typos (#687) (thanks @joe94)
- โก๏ธ Update README.md with English version of website (#708) (thanks @Olliepop)
- โก๏ธ Profilesvc docs update (#709) (thanks @wadearnold)
- โ Remove redundant statements in profilesvc example (#721) (thanks @sudo-suhas)
- โ Adds documentation for OpenCensus (#730) (thanks @basvanbeek)
- โ Add kitgen README (#743) (thanks @ermik)
- โ Adds GoBuffalo (#748) (thanks @1995parham)
- ๐ Use newest Go releases for testing (#757) (thanks @ChrisHines)
- โ Remove context in stringsvc examples 1 & 2 (#764) (thanks @bx2)
- ๐ metrics: remove commented-out debug code (#770) (thanks @quasilyte)
- โ Delete debug.test (#777) (thanks @danp)
-
v0.7.0 Changes
March 19, 2018๐ An early 2018 release, containing several exciting new enhancements. First, we
now have thekitgen
code generation tool, for bootstrapping new services,
thanks to the tireless efforts of @nyarly. Second, we have the long-awaited
JSONRPC transport, due to the tireless efforts of @rossmcf, @blainsmith, and
๐ several others. Thanks also to @senseyeio. Also, we have support for etcdv3 in
๐ฆ package sd, and a new prototype cloudwatch package for metrics.๐ Thanks to the 16 individual contributors who have contributed to this release! ๐๏ธโโ๏ธ
๐ Bug fixes
- transport/http: Allow multiple HTTP-Headers Server (#644) -- thanks, @klaus
- transport/jsonrpc: Fix various errors (#673, #679) -- thanks, @rossmcf and @basvanbeek
- tracing/zipkin: Set error tag on Zipkin HTTP error status codes (#683) -- thanks, @basvanbeek
โจ Enhancements
- cmd/kitgen: Add kitgen code generator tool (#589) -- thanks, @nyarly
- ๐ฆ transport/jsonrpc: New package (#576) -- thanks, @rossmcf @blainsmith and @senseyeio
- ๐ sd/etcdv3: Add support for etcdv3 (#663) -- thanks, @cabrel
- ๐ฆ metrics/cloudwatchv2: Add alternative cloudwatch package (#668) -- thanks, @nelz9999
- ๐ tracing/zipkin: Add native Zipkin tracing support (#671) -- thanks, @basvanbeek
- ๐ฒ log: Add syslog support (#574) -- thanks, @mingan
- transport/http: Add Server NoOpRequestDecoder (#659) -- thanks, @jdolce
- ๐ ratelimit: Remove dependency on juju (#622) -- thanks, @nelz9999
๐ Documentation, examples, and testing
- โก๏ธ examples: Update example stringsvc (#638) -- thanks, @wadearnold
- ๐ฒ log: Rename sirupsen import (#682) -- thanks, @arbourd
- โก๏ธ misc: Updates to latest Thrift (#630, #678) -- thanks @basvanbeek
- โก๏ธ misc: Doc updates (#662) -- thanks, @bflanigan
-
v0.6.0 Changes
October 09, 2017๐ A late-2017 release, containing mostly small enhancements and bugfixes. The biggest change not totally reflected in the changelog below is that this release includes changes to support gRPC 1.6. There are several breaking or potentially-breaking changes, including the fact that we now support only Go 1.9 and above.
๐ Thanks to the 18 individual contributors who have contributed to this release! ๐๏ธโโ๏ธ
๐ Bug fixes
- ๐ฅ auth/jwt: MapClaims: improve API (#568) -- breaking change -- thanks, @litriv
- transport/grpc: rm deprecated funcs (#598) -- potentially breaking change -- thanks, @travissalascox
- auth/jwt: prevent concurrent reads and writes on MapClaims (#564)
- transport/grpc: fix a swallowed error (#572) -- thanks, @alrs
- metrics/cloudwatch: only send new counter values (#591) -- thanks, @feliksik
- metrics/dogstatsd: fix for when to omit tag values (#602) -- thanks, @jfhamlin
โจ Enhancements
- ๐ฅ Standardize names for functions moving information to and from the context (#579) -- breaking change
- metrics/cloudwatch: partition API requests into separate concurrent batches (#540) -- thanks, @alpeb
- ratelimit: new adapters for x/time/rate (#582) -- thanks, @nelz9999
- sd: add Stop method to Instancer interface (#583)
- 0๏ธโฃ metrics/dogstatsd: track Gauge values, and support default values (#588) -- thanks, @jfhamlin
- metrics/cloudwatch: improve API for specifying percentiles (#599) -- thanks, @feliksik
- auth/basic: add BasicAuth middleware (#605) -- thanks, @DimaSalakhov
- metrics: set unit time on Timer type (#610) -- thanks, @esenac
๐ Documentation, examples, and testing
- Go kit now only supports go1.9 and above (#613) -- potentially breaking change
- โ Run Coveralls on Travis (#519)
- โก๏ธ Update gRPC README information about protoc and streams (#557) -- thanks, @Fanatics
- ๐ Minor documentation fixes (#561)
- โ Remove some byte order marks (#571) -- thanks, @lwalen
- โ metrics/cloudwatch: Small fixes to CloudWatch tests (#573) -- thanks, @alrs
- ๐ฆ examples/addsvc: improved package layout (#577)
- โ log: improve tests (#581) -- thanks, @cam-stitt
- โก๏ธ examples: updated Thrift to latest Go library (#585) -- thanks, @basvanbeek
- โ sd: fix TestDefaultEndpointer flake (#596)
- sd: fix spelling in doc comment (#603) -- thanks, @elliotwms
- examples/addsvc: fix typo in doc comments (#606) -- thanks, @gosharplite
- metrics: fix missing comma in example code (#611) -- thanks, @daniel-garcia
- โก๏ธ auth/jwt: minor doc update (#617) -- thanks, @bcho
- examples/addsvc: fix typo (#619) -- thanks, @karthikmuralidharan
-
v0.5.0 Changes
June 20, 2017๐ฅ A pre-GopherCon release, the biggest change being breaking changes to package sd. We now expose the raw instance strings from each underlying service discovery system, so that consumers can do things with them other than construct endpoints. For background, see issues #475, #403, and #209, and for the (extensive) discussion, see PR #492.
๐ Besides that, we just have a solid set of improvements and enhancements. See below for the full changelog. Huge thanks to Yuri Shkuro @yurishkuro for his tireless work on package sd, including dealing with my mercurial demands and frustratingly irregular schedule. And huge thanks to the 17 individual contributors who've contributed to this release! ๐๏ธโโ๏ธ
๐ Bug fixes
- โก๏ธ log: Update NewSyncWriter to work with term.IsTerminal (#501) โ thanks, @ChrisHines
- ๐ metrics/prometheus: move handlers to promhttp (#497) โ thanks, @kavirajk
โจ Enhancements
- ๐ sd: Support push model for service discovery (#492) โ thanks, @yurishkuro
- sd: add Eureka SD implementation (#504) โ thanks, @martinbaillie
- โฌ๏ธ transport/http: upgrade go1.7 ctxhttp to req.WithContext (#535) โ thanks, @stanxii
- transport/http: add client finalizer (#533) โ thanks, @travissalascox
- transport/http: make request Accept header available in context (#516)
- ๐ transport/grpc: remove autoprefixing logic (#524) โ thanks, @terinjokes
- auth/jwt: Add *WithClaims methods to jwt middleware (#488) โ thanks, @cam-stitt
- ๐ auth/jwt: Improved error handling on jwt.NewParser (#521) โ thanks, @basvanbeek
- metrics: Cloudwatch metrics (#495) โ thanks, @cam-stitt
- ๐ฒ log: Add TimestampFormat and TimeFormat (#514) โ thanks, @ChrisHines
- ๐ฒ log: Add msys2/cygwin terminal detection support (#485) โ thanks, @ereOn
๐ Documentation, examples, and testing
- โ sd: test fixes (#544, #547, #548, #550) โ thanks, @yurishkuro
- ๐ log/level: Remove log.NewContext mention from log/level docs (#493) โ thanks, @narqo
- โ log/level: fix typo in level test cases (#520) โ thanks, @SimonRichardson
- examples/shipping: header should set before WriteHeader (#538) โ thanks, @bcho
- ๐ฒ examples/shipping: use log.NewSyncWriter in example (#522) โ thanks, @terinjokes
- examples/addsvc: Fix typo in addsvc's doc block (#518) โ thanks, @annismckenzie
- ๐ README: Remove h2 framework from Service frameworks (#532) โ thanks, @NoahZhang
- โก๏ธ misc: Install latest by default on Travis and update go for CircleCI (#536) โ thanks, @suyash
- misc: Use more consistent CircleCI badge (#517) โ thanks, @kevgo
-
v0.4.0 Changes
March 08, 2017๐ Another substantial Go kit release, with a handful of bugfixes and some major enhancements.
We now use stdlib package context wherever possible โ basically, everywhere except package transport/grpc, as gRPC still imports golang.org/x/net/context and we don't have a choice but to comply. Still, there are ways to bridge the gap: see examples/addsvc for details. This means Go kit now requires Go 1.7 or above.
โ The other major changes in this release involve package log. We've removed NewContext and the Context type , preferring With and WithPrefix helper functions. Also, we've promoted the experiemental level package to package level, and deprecated the old levels package to deprecated_levels. I'm really happy with this: it's a slightly esoteric, but really clean and literate way to compose levels with Go kit's package log. Give it a shot!
๐ For the full changelog, see below. My enormous gratitude goes to Chris Hines @ChrisHines for his expert work on package log, and to Bas van Beek @basvanbeek for his expert work on packages tracing and transport/grpc. And huge thanks to the 22 individual contributors who've contributed to this release! ๐๏ธโโ๏ธ
๐ Bug fixes
- ๐ฒ log/term/colorlogger: Reset bold attribute (#399) - thanks, @serge-v
- metrics/influx: Fix global tags (#404) โ thanks, @kihamo
- metrics/generic: make goroutine-safe (#424) โ thanks, @gaplyk
- metrics/generic: actually track metric name thru With invocations (#455) โ thanks, @yurishkuro
โจ Enhancements
- ๐ Use stdlib context where possible (#421, #480)
- ๐ log: remove Context type, prefer With/WithPrefix helpers (#481)
- 0๏ธโฃ log: DefaultTimestamp becomes nano-precision (#430) โ thanks, @willfaught
- 0๏ธโฃ log: DefaultCaller key becomes "caller" (#439) โ thanks, @willfaught
- ๐ฆ log/level: brand new leveled logging package (#401, #454, #470, #476) โ thanks, @groob
- metrics: Gauge gets an Add method (#393) โ thanks, @hardcoar, @dlmiddlecote
- โ metrics/circonus: rm :( it was racy, difficult to test, and broke often (#442)
- sd/etcd: add TTL (#413) โ thanks, @buptmiao
- transport: ServerBefore/ServerAfter can be repeated (#467, #479) โ thanks, @djgilcrease
- transport/grpc: improve error handling (#389) โ thanks, @kushtrimjunuzi
- ๐ transport/grpc: support Server Response Headers and Trailers (#479)
- transport/http: add ServerFinalizer (#394, #405, #408, #461) โ thanks, @konradreiche, @xla, @drscre
- โจ transport/http: enhance ErrorEncoder: support StatusCoder, Headerer, json.Marshaler interfaces (#414)
- transport/http: don't encode JSON response with StatusNoContent (#436) โ thanks, @groob
- transport/http: add EncodeJSONRequest helper (#440) โ thanks, @willfaught
- transport/http: add EncodeXMLRequest (#456) โ thanks, and condolences, to @gaplyk
๐ Documentation, examples, and testing
- examples/addsvc: correct typo (#396) โ thanks, @patterns
- examples/shipping: fix reciever name (#473) โ thanks, @kisPocok
- ๐ log: improve documentation (#429)
- ๐ metrics: fix documentation (#406, #417) โ thanks, @Artmann
- ๐ metrics/graphite: fix typo in docs (#450) โ thanks, @jkakar
- tracing/zipkin: document new, easier Zipkin HTTP tracing collector (#466)
- ๐ tracing/zipkin: fix typo in Zipkin docs (#469) โ thanks, @frozzare
- โ Testing: fixes for Go report card (#395)
- โ Testing: run integration tests on Circle (#372, #416) โ thanks, @rodrigosaito
- ๐ณ Testing: use docker-compose 1.10 in integration environment (#448)
- โ Testing: improve coverprofile wildcard in gitignore (#458) โ thanks, @travissalascox
- โ Testing: Drone.io is no more :( (#468) โ thanks, @17twenty
- โฌ๏ธ Testing: Upgrade CI to use go1.7.5 and go1.8 (#471)
-
v0.3.0 Changes
November 15, 2016๐ An incremental, if large, release of Go kit. With contributions from @basvanbeek, @bbrazil, @briankassouf, @cam-stitt, @dvrkps, @everesio, @Fenthick, @groob, @jstordeur, @kpacha, @marcusolsson, @mishudark, @peterbourgon, @rossmcf, @suyash, and @xla. Thanks, contributors!
๐ Bug fixes
- ๐ Fix synchronization bug in metrics/generic.Histogram (#392)
- ๐ Fixes tracking changes to OpenTracing (#387, #374, #339)
- ๐ Fixes and improvements to package metrics/influx (#369)
- Correct HTTP tags in distributed tracing spans (#375)
- ๐ Fix some dead and breaking code in package sd/consul (#371)
- ๐ Fix panic on inconsistent label cardinality (#365)
- ๐ Fix To/From mixup in package tracing (#348)
โจ Enhancements
- ๐จ Completely refactor package metrics (#313) โ
- โ Add package auth/jwt (#335)
- โ Add package metrics/pcp for Intel Performance CoPilot (#363)
- โ Add package log/experimental_level (#357)
- Custom error behavior for lb.Retry (#370)
- โก๏ธ Update examples/shipping (#388)
- ๐ Go Report Card fixes (#379)
- โ Remove unused errors from package endpoint (#361)
- โ Add metrics.Timer (#358)
- โ Add better unit tests for package sd/etcd.Client (#344)
๐ Documentation
-
v0.2.0 Changes
August 02, 2016๐ An incremental release of Go kit. With contributions from @Ayiga, @basvanbeek, @ChrisHines, @eblanchette, @ifraixedes, @jygastaud, @LennartOlsen, @peterbourgon, and @xmattstrongx. Thanks, contributors!
๐ Bug fixes
- util/conn: fix Manager behavior when initial Dial fails (#293)
- ๐ Fixes tracking changes to OpenTracing (#330, #315, #314, #311, #306)
- ๐ Fixes and improvements to package etcd tests (#329)
โจ Enhancements
- ๐ Simple sync log (#327)
- ๐ฒ Do not log "SpanContext not found in Extract carrier" (#316)
- ๐ Improvements to transports and contexts, especially gRPC (#303)
- sd etcd register/deregister implementation (#299)
๐ Documentation
- ๐ Some small fixes on Profilesvc example (#318)
- โ Adding testable example documention (#317)
- โ Removed url.QueryEscape from the make*Endpoint functions (#309)
- ๐ Fix typos (#307)
- ๐ Update documentation throughout the project (#301)
- โก๏ธ Update client.go concatEndpoint (#297)
- examples/addsvc: recompile protobufs (#296)
-
v0.1.0 Changes
June 07, 2016๐ The initial semver-compatible tagged release of Go kit. See #279.