-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Convert Zipkin receiver and exporter to use OTLP and fix translation bugs #1446
Convert Zipkin receiver and exporter to use OTLP and fix translation bugs #1446
Conversation
receiver/hostmetricsreceiver/internal/scraper/processscraper/process.go
Outdated
Show resolved
Hide resolved
receiver/hostmetricsreceiver/internal/scraper/processscraper/process_scraper_test.go
Outdated
Show resolved
Hide resolved
Seems that correctness tests for Zipkin translation are failing |
Timestamps are not converting correctly on Linux but are on OS X. I am working on debugging. |
Can be some time zone issue, it is just a guess |
b[i], b[j] = b[j], b[i] | ||
} | ||
|
||
// V2SpansToInternalTraces translates Zipkin v2 spans into internal trace data. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't appear that this method shares any implementation details with the Zipkin v1, can we keep them somewhat unified? I had just merged them together recently #1002
return err | ||
} | ||
|
||
func populateSpanStatus(tags map[string]string, status pdata.SpanStatus) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The previous implementation used statusMapper to infer the status from additional tags like http.status_code
https://github.com/open-telemetry/opentelemetry-collector/blob/master/translator/trace/zipkin/zipkinv2_to_protospan.go#L239-L252
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Status is going to be removed from the specification. We should wait until that happens to revise this.
Description: New translators were created for Zipkin formats to OTLP and for OTLP to Zipkin v2. The Zipkin receiver and exporter were converted to use the new translators.
Link to tracking Issue:
Fixes #526
Fixes #572
Fixes #1138
Fixes #1303
Fixes #1304
Testing: All existing tests pass
Documentation: N/A