Skip to content

Commit

Permalink
Add metrics reader interface and gen proto (#2977)
Browse files Browse the repository at this point in the history
* Add metrics reader interface and gen proto

Signed-off-by: albertteoh <[email protected]>

* Move metrics proto to metrics package

Signed-off-by: albertteoh <[email protected]>

* service.proto -> metricsquery.proto

Signed-off-by: albertteoh <[email protected]>
  • Loading branch information
albertteoh authored May 6, 2021
1 parent f076065 commit e08d812
Show file tree
Hide file tree
Showing 9 changed files with 8,885 additions and 13 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -505,18 +505,18 @@ proto:
$(PROTOC) \
$(PROTO_INCLUDES) \
--gogo_out=plugins=grpc,$(PROTO_GOGO_MAPPINGS):$(PWD)/proto-gen/api_v2 \
--gogo_out=plugins=grpc,$(PROTO_GOGO_MAPPINGS):$(PWD)/proto-gen/api_v2/metrics \
model/proto/metrics/otelspankind.proto

$(PROTOC) \
$(PROTO_INCLUDES) \
--gogo_out=plugins=grpc,$(PROTO_GOGO_MAPPINGS):$(PWD)/proto-gen/api_v2 \
--gogo_out=plugins=grpc,$(PROTO_GOGO_MAPPINGS):$(PWD)/proto-gen/api_v2/metrics \
model/proto/metrics/otelmetric.proto

$(PROTOC) \
$(PROTO_INCLUDES) \
--gogo_out=plugins=grpc,$(PROTO_GOGO_MAPPINGS):$(PWD)/proto-gen/api_v2 \
model/proto/metrics/service.proto
--gogo_out=plugins=grpc,$(PROTO_GOGO_MAPPINGS):$(PWD)/proto-gen/api_v2/metrics \
model/proto/metrics/metricsquery.proto

$(PROTOC) \
$(PROTO_INCLUDES) \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@

syntax="proto3";

package jaeger.api_v2;
package jaeger.api_v2.metrics;

import "otelmetric.proto";
import "otelspankind.proto";
import "gogoproto/gogo.proto";
import "google/protobuf/timestamp.proto";
import "google/protobuf/duration.proto";

option go_package = "api_v2";
option java_package = "io.jaegertracing.api_v2";
option go_package = "metrics";
option java_package = "io.jaegertracing.api_v2.metrics";

// Enable gogoprotobuf extensions (https://github.com/gogo/protobuf/blob/master/extensions.md).
// Enable custom Marshal method.
Expand Down
6 changes: 3 additions & 3 deletions model/proto/metrics/otelmetric.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@

syntax="proto3";

package jaeger.api_v2;
package jaeger.api_v2.metrics;

import "gogoproto/gogo.proto";

option go_package = "api_v2";
option java_package = "io.jaegertracing.api_v2";
option go_package = "metrics";
option java_package = "io.jaegertracing.api_v2.metrics";

// Enable gogoprotobuf extensions (https://github.com/gogo/protobuf/blob/master/extensions.md).
// Enable custom Marshal method.
Expand Down
6 changes: 3 additions & 3 deletions model/proto/metrics/otelspankind.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@

syntax="proto3";

package jaeger.api_v2;
package jaeger.api_v2.metrics;

import "gogoproto/gogo.proto";

option go_package = "api_v2";
option java_package = "io.jaegertracing.api_v2";
option go_package = "metrics";
option java_package = "io.jaegertracing.api_v2.metrics";

// Enable gogoprotobuf extensions (https://github.com/gogo/protobuf/blob/master/extensions.md).
// Enable custom Marshal method.
Expand Down
Loading

0 comments on commit e08d812

Please sign in to comment.