-
Notifications
You must be signed in to change notification settings - Fork 84
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 models for sort.go, span.go, spanref.go, time.go, trace.go, model_test.proto #125
Add models for sort.go, span.go, spanref.go, time.go, trace.go, model_test.proto #125
Conversation
Signed-off-by: nabil salah <[email protected]>
Signed-off-by: nabil salah <[email protected]>
Signed-off-by: nabil salah <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #125 +/- ##
========================================
+ Coverage 3.46% 8.33% +4.87%
========================================
Files 10 16 +6
Lines 7555 7830 +275
========================================
+ Hits 262 653 +391
+ Misses 7283 7135 -148
- Partials 10 42 +32 ☔ View full report in Codecov by Sentry. |
do you need a rebase with the new commit or is that fine? |
Signed-off-by: nabil salah <[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.
@Nabil-Salah I removed the following files from the PR because they are not direct copies, and I would like to understand the changes better. In fact, I think we should back-port the first change I made #118 by splitting certain logic into new files such that the same exact structure exists in the main repo - copying should really be no changes to the files. Can you do that?
deleted: model/v1/span.go
deleted: model/v1/span_pkg_test.go
deleted: model/v1/span_test.go
yes of course will try to do so I'll make my changes on this pr |
I created jaegertracing/jaeger#6581 |
@Nabil-Salah if you hit Approve on that PR I can merge it to unblock you. But I think besides that PR there are more changes like that needed, for example
|
@yurishkuro
is it okay? |
for
the problem is that if okay I can make a new pr that contain those |
…ng models Signed-off-by: nabil salah <[email protected]>
Head branch was pushed to by a user without write access
@@ -0,0 +1,230 @@ | |||
// Copyright (c) 2018 Uber Technologies, Inc. |
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.
we cannot just copy generated file, it needs to be regenerated by make proto
zap is used in
Doesn't make sense to keep it in the model, let's move to a private method in the aggregator. For OTEL dependency in TestIsRPCClientServer, let's just replace it with a plain string, it's fine for the test. Can you make those changes in |
Signed-off-by: nabil salah <[email protected]>
Makefile.Protobuf.mk
Outdated
.PHONY: proto-model | ||
proto-model: | ||
$(call proto_compile, model/v1, proto/api_v2/model.proto) | ||
$(PROTOC) -Imodel/proto --go_out=$(PWD)/model/v1/ model/v1/proto/model_test.proto |
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.
cannot use call proto_compile
?
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.
model/v1/proto/model_test.proto
Outdated
|
||
package prototest; | ||
|
||
option go_package = "./prototest"; |
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.
let's not store it here. Since we have prototest
directory anyway, we can store the .proto
file there as well.
Signed-off-by: nabil salah <[email protected]>
@yurishkuro |
there were changes to makefiles in #120 |
Signed-off-by: nabil salah <[email protected]>
@yurishkuro |
Signed-off-by: nabil salah <[email protected]>
Makefile
Outdated
@@ -179,6 +179,11 @@ proto-prepare-all: | |||
proto-prepare: | |||
mkdir -p ${PROTO_GEN_GO_DIR} | |||
|
|||
.PHONY: proto-model | |||
proto-model: | |||
$(call proto_compile, model/v1, proto/api_v2/model.proto) |
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 is already done in proto-api-v2
Makefile
Outdated
@@ -179,6 +179,11 @@ proto-prepare-all: | |||
proto-prepare: | |||
mkdir -p ${PROTO_GEN_GO_DIR} | |||
|
|||
.PHONY: proto-model | |||
proto-model: |
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.
proto-model: | |
proto-prototest: |
Signed-off-by: nabil salah <[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.
Thanks!
Which problem is this PR solving?
Description of the changes
model/
->sort.go
,spanref.go
,time.go
,trace.go
How was this change tested?
go test ./model/v1
Checklist
golangci-lint run ./model/v1/
go test ./model/v1