Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds zipkin.internal.Span2Codec.JSON #1671

Merged
merged 1 commit into from
Jul 28, 2017
Merged

Adds zipkin.internal.Span2Codec.JSON #1671

merged 1 commit into from
Jul 28, 2017

Conversation

codefromthecrypt
Copy link
Member

@codefromthecrypt codefromthecrypt commented Jul 27, 2017

This adds an internal copy of a span json codec issue #1499. This starts
internal to ease review and allow incremental progress. The first
consumer will be Elasticsearch, as this format removes nested queries.

Note: this change also introduces json serialization of Span2, which
allows future use in Spark.

Benchmark:

Benchmark                                          Mode  Cnt   Score   Error  Units
CodecBenchmarks.readClientSpan_json_span2          avgt   15   4.514 ± 0.141  us/op
CodecBenchmarks.readClientSpan_json_zipkin         avgt   15   8.026 ± 0.174  us/op
CodecBenchmarks.readClientSpan_thrift_libthrift    avgt   15   2.251 ± 0.196  us/op
CodecBenchmarks.readClientSpan_thrift_zipkin       avgt   15   2.093 ± 0.038  us/op
CodecBenchmarks.readTenClientSpans_json_span2      avgt   15  37.499 ± 1.834  us/op
CodecBenchmarks.readTenClientSpans_json_zipkin     avgt   15  72.065 ± 2.804  us/op
CodecBenchmarks.readTenClientSpans_thrift_zipkin   avgt   15  21.267 ± 1.286  us/op
CodecBenchmarks.writeClientSpan_json_span2         avgt   15   1.145 ± 0.083  us/op
CodecBenchmarks.writeClientSpan_json_zipkin        avgt   15   1.925 ± 0.053  us/op
CodecBenchmarks.writeClientSpan_thrift_libthrift   avgt   15   2.758 ± 0.056  us/op
CodecBenchmarks.writeClientSpan_thrift_zipkin      avgt   15   0.630 ± 0.032  us/op
CodecBenchmarks.writeTenClientSpans_json_span2     avgt   15  11.283 ± 0.279  us/op
CodecBenchmarks.writeTenClientSpans_json_zipkin    avgt   15  18.009 ± 0.990  us/op
CodecBenchmarks.writeTenClientSpans_thrift_zipkin  avgt   15   5.899 ± 0.229  us/op

@codefromthecrypt
Copy link
Member Author

followed by #1673

This adds an internal copy of a span json codec issue #1499. This starts
internal to ease review and allow incremental progress. The first
consumer will be Elasticsearch, as this format removes nested queries.

Note: this change also introduces json serialization of Span2, which
allows future use in Spark.
@codefromthecrypt codefromthecrypt changed the base branch from span2-converter to master July 28, 2017 01:37
@codefromthecrypt codefromthecrypt merged commit 998f50d into master Jul 28, 2017
@codefromthecrypt codefromthecrypt deleted the span2-codec branch July 28, 2017 02:21
codefromthecrypt pushed a commit that referenced this pull request Jul 28, 2017
* Adds zipkin.internal.Span2Converter (#1670)

This adds an internal copy of a span conversion utility mentioned in
issue #1499. This is starting internal to ease review and allow
incremental progress. The first consumer will be dependency linking.

* Adds zipkin.internal.Span2Codec.JSON (#1671)

This adds an internal copy of a span json codec issue #1499. This starts
internal to ease review and allow incremental progress. The first
consumer will be Elasticsearch, as this format removes nested queries.

Note: this change also introduces json serialization of Span2, which
allows future use in Spark.

* Drops internal DependencyLinkSpan for Span2

This drops the internal type of DependencyLinkSpan in favor of the Span2
type coming in #1499. Doing so now gives us practice, solves a few bugs
along the way. When Span2 becomes non-internal, the change will be a
simple package rename.
abesto pushed a commit to abesto/zipkin that referenced this pull request Sep 10, 2019
This adds an internal copy of a span json codec issue openzipkin#1499. This starts
internal to ease review and allow incremental progress. The first
consumer will be Elasticsearch, as this format removes nested queries.

Note: this change also introduces json serialization of Span2, which
allows future use in Spark.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant