-
Notifications
You must be signed in to change notification settings - Fork 2.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
💤 Swap Zipkin server for Zipkin Receiver from OTel Collector Contrib #5045
Conversation
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
@@ -0,0 +1,79 @@ | |||
[ |
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.
I used the existing zipkin_v1_merged_spans.json
file (Zipkin JSON v1), converged into object model, and re-serialized as JSON. It uses different representations for many fields, like raw numbers instead of hex strings for IDs.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #5045 +/- ##
==========================================
- Coverage 95.58% 95.55% -0.04%
==========================================
Files 319 313 -6
Lines 18794 18161 -633
==========================================
- Hits 17965 17353 -612
+ Misses 665 647 -18
+ Partials 164 161 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Yuri Shkuro <[email protected]>
@@ -1,7 +1,7 @@ | |||
{ | |||
"spans": [ | |||
{ | |||
"trace_id": "AAAAAAAAAAI=", | |||
"trace_id":"QoVouqoJRn5CjmiKqglGfw==", |
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.
(breaking 🛑) had to change this because of the error TraceID: has length 8 yet wanted length 16
. Jaeger receiver did not have such limitation.
Signed-off-by: Yuri Shkuro <[email protected]>
@@ -12,59 +12,29 @@ | |||
// See the License for the specific language governing permissions and | |||
// limitations under the License. | |||
|
|||
package server | |||
package handler |
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.
This was testing exhaustively TLS settings on Zipkin endpoint, so I decided to keep it, just move from a different location. It works against the Zipkin receiver now.
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
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.
lgtm. One potential issue is keeping this sync with the upstream Otel changes. I do not think this will happen much with Zipkin being stagnant but it's a potential point of additional work.
What sync are you referring to? Basically my plan is to only use OTEL's implementation going forward and if any issues direct them upstream. We still support Zipkin Thrift in the agent, which is a separate implementation, but we should be able to remove it once we sunset the agent. |
Which problem is this PR solving?
Description of the changes
TraceID: has length 8 yet wanted length 16
. Jaeger receiver did not have such limitation.--collector.zipkin.keep-alive
setting is not supported in the OTEL receivergo mod tidy
removed allgo-openapi
dependencies and a few othersHow was this change tested?
cmd/collector/app/handler/zipkin_receiver_test.go
that submit various Zipkin formats to the receiverChecklist
jaeger
:make lint test
jaeger-ui
:yarn lint
andyarn test