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

breaking(zipkin): removes serviceName from zipkin exporter. #1697

Conversation

jcchavezs
Copy link
Contributor

Resource detector provides a serviceName in all cases, hence we can relay on span resource to obtain the serviceName. Also this is required by the spec https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/sdk_exporters/zipkin.md\#service-name

Closes #1549

Resource detector provides a serviceName in all cases, hence we can relay on span resource to obtain the serviceName. Also this is required by the spec https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/sdk_exporters/zipkin.md\#service-name (open-telemetry#1549).
@codecov
Copy link

codecov bot commented Mar 12, 2021

Codecov Report

Merging #1697 (b5effb8) into main (62cbf0f) will decrease coverage by 0.0%.
The diff coverage is 100.0%.

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #1697     +/-   ##
=======================================
- Coverage   77.8%   77.8%   -0.1%     
=======================================
  Files        130     130             
  Lines       6986    6988      +2     
=======================================
+ Hits        5437    5438      +1     
- Misses      1298    1299      +1     
  Partials     251     251             
Impacted Files Coverage Δ
exporters/trace/zipkin/model.go 98.6% <100.0%> (+<0.1%) ⬆️
exporters/trace/zipkin/zipkin.go 73.3% <100.0%> (-0.4%) ⬇️
exporters/otlp/otlpgrpc/connection.go 86.9% <0.0%> (-1.9%) ⬇️
sdk/trace/batch_span_processor.go 74.3% <0.0%> (+0.8%) ⬆️

Copy link
Member

@bogdandrutu bogdandrutu left a comment

Choose a reason for hiding this comment

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

My LGTM does not count, but I like giving it 👍

CHANGELOG.md Outdated
@@ -22,6 +22,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
- `"go.opentelemetry.io/sdk/metric/controller.basic".WithPusher` is replaced with `WithExporter` to provide consistent naming across project. (#1656)
- Added non-empty string check for trace `Attribute` keys. (#1659)
- Add `description` to SpanStatus only when `StatusCode` is set to error. (#1662)
- Removes `serviceName` parameter from Zipkin exporter and uses resource instead. (#1549)
Copy link
Member

Choose a reason for hiding this comment

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

Not sure about the standard, but I see all using "Remove" here :)

Copy link
Member

Choose a reason for hiding this comment

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

This line should move to the Removed section.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Copy link
Member

@XSAM XSAM 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. But we should update example/zipkin/main.go as well.

CHANGELOG.md Outdated
@@ -22,6 +22,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
- `"go.opentelemetry.io/sdk/metric/controller.basic".WithPusher` is replaced with `WithExporter` to provide consistent naming across project. (#1656)
- Added non-empty string check for trace `Attribute` keys. (#1659)
- Add `description` to SpanStatus only when `StatusCode` is set to error. (#1662)
- Removes `serviceName` parameter from Zipkin exporter and uses resource instead. (#1549)
Copy link
Member

Choose a reason for hiding this comment

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

This line should move to the Removed section.

@jcchavezs
Copy link
Contributor Author

jcchavezs commented Mar 13, 2021 via email

@Aneurysm9 Aneurysm9 merged commit 345f264 into open-telemetry:main Mar 16, 2021
jcchavezs added a commit to hypertrace/goagent that referenced this pull request Aug 19, 2021
It was required for zipkin exporter but not anymore, see open-telemetry/opentelemetry-go#1697.
@jcchavezs jcchavezs changed the title breaking(zipkin): removes servicName from zipkin exporter. breaking(zipkin): removes serviceName from zipkin exporter. Aug 19, 2021
jcchavezs added a commit to hypertrace/goagent that referenced this pull request Aug 19, 2021
* chore: removes service name as parameter for exporter

It was required for zipkin exporter but not anymore, see open-telemetry/opentelemetry-go#1697.

* chore: adds check for Go 1.16.
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.

Zipkin exporter should take service.name from Resource
4 participants