• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

openzipkin / zipkin-go / 206 / 1
73%
master: 73%

Build:
DEFAULT BRANCH: master
Ran 07 Nov 2018 01:57PM UTC
Files 30
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

07 Nov 2018 01:50PM UTC coverage: 74.897% (-8.2%) from 83.106%
206.1

push

travis-ci

basvanbeek
<a href="https://github.com/openzipkin/zipkin-go/commit/<a class=hub.com/openzipkin/zipkin-go/commit/3793c981d4f621c0e3eb1457acffa2c1cc591384">3793c981d<a href="https://github.com/openzipkin/zipkin-go/commit/3793c981d4f621c0e3eb1457acffa2c1cc591384">&quot;&gt;proto: add Zipkin proto + converter (#88)

* proto: add Zipkin proto + converter

Added:
a) Zipkin v2 Proto3 definitions from
https://github.com/openzipkin/zipkin-api/blob/</a><a class="double-link" href="https://github.com/openzipkin/zipkin-go/commit/<a class="double-link" href="https://github.com/openzipkin/zipkin-go/commit/6dfa27520abb62de7b01dba04683177afaa40c8c">6dfa27520</a>">6dfa27520</a><a href="https://github.com/openzipkin/zipkin-go/commit/3793c981d4f621c0e3eb1457acffa2c1cc591384">/zipkin.proto

b) a helper Protobuf function ParseSpans to parse
model.SpanModel-s from the serialized protobuf data

as well as an end-to-end test.

Fixes #87
Spawned by https://github.com/census-instrumentation/opencensus-service/pull/155

* proto/*/convert_proto.go: rename zps to s, return err early

Addressing review feedback:
* Rename zps to s
* On encountering any error during protoSpan-&gt;zipkinModelSapn,
return ASAP

* proto/*/v2: move payload to a global variable

Requested in codereview feedback

* proto/*/v2: make fmt.Errorf calls more descriptive

Provide a more descriptive context in fmt.Errorf
calls to match the style in:
https://github.com/openzipkin/zipkin-go/blob/master/propagation/b3/shared.go

* proto/*/v2: test and assert known failures

Test to ensure that the failures that we know
could happen e.g.
* Missing/invalid length TraceID
* Missing/invalid length SpanID
* Invalid length ParentSpanID

are caught and report errors instead of successfully
parsing.
Also tweaked the errors returned to be more descriptive
and graceful.

1274 of 1701 relevant lines covered (74.9%)

5066.18 hits per line

Source Files on job 206.1
  • Tree
  • List 0
  • Changed 9
  • Source Changed 0
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 191
  • Travis Job 206.1
  • 3793c981 on github
  • Prev Job for on master (#198.3)
  • Next Job for on master (#214.3)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc