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

Add Zipkin exporter factory #207

Merged

Conversation

pjanotti
Copy link
Contributor

Add the Zipkin exporter configuration factory using the new configuration format. This does not bring many of the settings from the old configuration since they won't be used. In a sub-sequent PR the code of the exporter itself will be changed.

Closes #34

@codecov-io
Copy link

codecov-io commented Jul 30, 2019

Codecov Report

Merging #207 into master will increase coverage by 0.02%.
The diff coverage is 82.6%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #207      +/-   ##
==========================================
+ Coverage   72.31%   72.34%   +0.02%     
==========================================
  Files         109      110       +1     
  Lines        6333     6347      +14     
==========================================
+ Hits         4580     4592      +12     
- Misses       1521     1523       +2     
  Partials      232      232
Impacted Files Coverage Δ
exporter/zipkinexporter/zipkin.go 74.01% <100%> (+0.38%) ⬆️
defaults/defaults.go 78.57% <100%> (+0.79%) ⬆️
exporter/zipkinexporter/factory.go 77.77% <77.77%> (ø)

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 dc4266d...e49f7b8. Read the comment docs.

UploadPeriod *time.Duration `mapstructure:"upload_period,omitempty"`
ServiceName string `mapstructure:"service_name,omitempty"`
Endpoint string `mapstructure:"endpoint,omitempty"`
UploadPeriod *time.Duration `mapstructure:"upload_period,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

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

Should this be added to new config?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

UploadPeriod is an option for the Zipkin exporter that i t should be handled in equivalent form via the pipeline, the same way that we do for OC (eg.: batcher, queued-retry).

ServiceName shouldn't actually be necessary, of course it still possible to have some bug in a client library not providing that information but it doesn't make much sense to inject it at the service as a configurable option, a place holder should suffice.

Copy link
Contributor

@ccaraman ccaraman left a comment

Choose a reason for hiding this comment

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

Could you also add some documentation for the zipkin exporter in https://github.com/open-telemetry/opentelemetry-service/blob/master/exporter/README.md?

exporter/zipkinexporter/config.go Outdated Show resolved Hide resolved
exporter/zipkinexporter/config_test.go Outdated Show resolved Hide resolved
@pjanotti
Copy link
Contributor Author

@ccaraman I will do a separate PR for changes in the exporters README and will include the changes related to Zipkin.

Copy link
Member

@songy23 songy23 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@ccaraman ccaraman left a comment

Choose a reason for hiding this comment

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

Thank you! I will keep an eye out for your doc changes! :)

@pjanotti pjanotti mentioned this pull request Jul 30, 2019
exporter/zipkinexporter/config.go Outdated Show resolved Hide resolved
exporter/zipkinexporter/factory.go Outdated Show resolved Hide resolved
@pjanotti pjanotti force-pushed the add-zipkin-exporter-factory branch from 6d39947 to 7a4f6a8 Compare July 31, 2019 19:01
Copy link
Member

@tigrannajaryan tigrannajaryan left a comment

Choose a reason for hiding this comment

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

All LGTM, except commented code.

exporter/zipkinexporter/factory.go Outdated Show resolved Hide resolved
Paulo Janotti added 5 commits July 31, 2019 14:03
Add the Zipkin exporter configuration factory using the new configuration format. This does not bring many of the settings from the old configuration since they won't be used. In a sub-sequent PR the code of the exporter itself will be changed.
Replaced the TODO commented code with an issue.
@pjanotti pjanotti force-pushed the add-zipkin-exporter-factory branch from b7b4ffe to e49f7b8 Compare July 31, 2019 21:06
@pjanotti
Copy link
Contributor Author

pjanotti commented Jul 31, 2019

Removed the commented code on the TODO and added a proper issue to track it: #216.

@pjanotti pjanotti merged commit a1ecc6f into open-telemetry:master Aug 1, 2019
@pjanotti pjanotti deleted the add-zipkin-exporter-factory branch August 1, 2019 18:29
pjanotti pushed a commit that referenced this pull request Aug 7, 2019
* Migrate updates to Prometheus receiver from opencensus-service

* Remove unnecessary configuration for adjusting metrics

* Update exporters README (#210)

Remove stale content, put in place a simple skeleton, and put information for the Zipkin exporter.

* Added Jaeger gRPC receiver (#197)

* Added Jaeger gRPC receiver

Signed-off-by: Juraci Paixão Kröhling <[email protected]>

* Addressed first review round

Signed-off-by: Juraci Paixão Kröhling <[email protected]>

* Changes based on the feedback from the second review

Signed-off-by: Juraci Paixão Kröhling <[email protected]>

* Fixed import order, check for same ip:port on endpoints

Signed-off-by: Juraci Paixão Kröhling <[email protected]>

* Reverted the port-check

Signed-off-by: Juraci Paixão Kröhling <[email protected]>

* Fix README - remove broken links and commands (#211)

Signed-off-by: Hui Kang <[email protected]>

* Refactor opencensus exporter to make it easily extensible (#212)

Refactored oc exporter code to make it easier to import in derived
builds without copying all the code.

Example derived exporter: https://github.com/owais/example-derived-oc-exporter

- Moved internal/compression to root
- Split opencensusexporter factory's `CreateTraceExporter` method into
  - `OCAgentOptions` and `CreateOCAgent`

* Use sha256 instead of md5 in node batcher processor (#202)

MD5 is insecure cryptographic hash functions, and are therefore unsuitable for security applications.

* Add goimports check and fix import order for all files (#209)

* Add goimports check and fix import order for all files

Updates #155.

* Try specifying a version for goimports

* Show the diff instead of files and fix import

* Fix default in Makefile

* Add factory and update config for tail sampling processor (#200)

* Add factory and update config for tail sampling processor

Updates #146

* Move to package processor

* Remove an unnecessary check

* Move CreateDefaultConfig to factory and add unit tests

* Fix test failure

* Remove commented code

* Add misspell check and fix all typos (#214)

* Add misspell check and fix all typos

Updates #155.

* Format

* Include yaml files

* Move tail sampling config to its own package and remove stale configs (#217)

Follow up of #200. Second step of #146.

* Add Observability Vision document (#188)

* Add Observability Vision document

This is a guidance document that developers can consult with when
working on improving own observability of OpenTelemetry Service.

* PR fixes

* Add Zipkin exporter factory (#207)

* Add Zipkin exporter factory

Add the Zipkin exporter configuration factory using the new configuration format. This does not bring many of the settings from the old configuration since they won't be used. In a sub-sequent PR the code of the exporter itself will be changed.

* PR Feedback: add 1 test plus some comments

* Rename endpoint to http-url and related field

* Fix goimports issue

* Remove TODO commented code

Replaced the TODO commented code with an issue.

* Rename the field used to specify destination

* Update README to address reviewer comments.

* Update module dependencies and import order for metricfamily

* Improve OC Receiver Documentation (#203)

* First round of receiver and opencensus receiver documentation.

* Undo go mod/sum changes

* Address initial set of comments.

* Address next set of comments.

* Address next set of comments.

* Fix use of server instead of receiver in comment and explain settings can be mix and matched.

* Merged master and fixed mispell error caugh with new tools

* Add static check and fix all errors (#218)

* Add static check

Fixes #155.

* Fix most staticcheck errors

* More fixes

* Fix id_batcher

* Rename exporterhelp parameter (#220)

The paramater was named exportFormat but it actually used as the exporter name.

* Fix build: lower casing error message (#224)

* Add jaeger grpc exporter (#219)

* Add Jaeger gRPC exporter

Adds a Jaeger gRPC exporter.

* Update exporters/README.md

* Fixes on the exporter/README.md

* Add doc.go with package description.

* Fix import order on config_test.go

* Migrate updates to Prometheus receiver from opencensus-service

* Remove unnecessary configuration for adjusting metrics

* Update README to address reviewer comments.

* Update module dependencies and import order for metricfamily

* Fix goimports

* Fix staticcheck issues
hughesjj pushed a commit to hughesjj/opentelemetry-collector that referenced this pull request Apr 27, 2023
Troels51 pushed a commit to Troels51/opentelemetry-collector that referenced this pull request Jul 5, 2024
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.

Add factory and new-style config for Zipkin receiver
5 participants