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

feat: add an example on how to config multiple span processors. #539

Merged
merged 2 commits into from May 7, 2021

Conversation

TommyCpp
Copy link
Contributor

@TommyCpp TommyCpp commented May 5, 2021

  • Add an example that export spans to both Jaeger and Zipkin to show how to config multiple span processors/exporters.

  • Remove the with_batch_exporter function in TracerProviderBuilder as it's the same as the with_span_processor.

  • Rename the with_default_batch_exporter function in TracerProvderBuilder to with_batch_exporter to keep it consistent with the with_simple_exporter.

  • Add init_exporter method in Zipkin's builder to allow user build a zipkin exporter

@TommyCpp TommyCpp requested a review from a team as a code owner May 5, 2021 01:25
@TommyCpp TommyCpp marked this pull request as draft May 5, 2021 01:32
* Add an example that export spans to both Jaeger and Zipkin to show how to config multiple span processors/exporters.

* Remove the `with_batch_exporter` function in `TracerProviderBuilder` as it's the same as the `with_span_processor`.

* Rename the `with_default_batch_exporter` function in `TracerProvderBuilder` to `with_batch_exporter` to keep it consistent with the `with_simple_exporter`.

* Add `init_exporter` method in Zipkin's builder to allow user build a zipkin exporter
@codecov
Copy link

codecov bot commented May 5, 2021

Codecov Report

Merging #539 (0fc186f) into main (b3623ab) will not change coverage.
The diff coverage is 0.0%.

Impacted file tree graph

@@          Coverage Diff          @@
##            main    #539   +/-   ##
=====================================
  Coverage   52.2%   52.2%           
=====================================
  Files         96      96           
  Lines       8506    8506           
=====================================
  Hits        4447    4447           
  Misses      4059    4059           
Impacted Files Coverage Δ
opentelemetry-datadog/src/exporter/mod.rs 16.4% <ø> (ø)
opentelemetry-jaeger/src/exporter/mod.rs 47.8% <ø> (ø)
opentelemetry-zipkin/src/exporter/mod.rs 0.0% <0.0%> (ø)
opentelemetry/src/global/trace.rs 15.4% <ø> (ø)
opentelemetry/src/sdk/trace/provider.rs 74.7% <0.0%> (ø)
opentelemetry/src/sdk/trace/span_processor.rs 81.4% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b3623ab...0fc186f. Read the comment docs.

@TommyCpp TommyCpp marked this pull request as ready for review May 5, 2021 01:59
Copy link
Member

@frigus02 frigus02 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

examples/multiple-span-processors/README.md Outdated Show resolved Hide resolved
Copy link
Member

@jtescher jtescher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good thanks @TommyCpp

@jtescher jtescher merged commit 92a0d85 into open-telemetry:main May 7, 2021
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.

None yet

3 participants