This repository was archived by the owner on Oct 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 11 files changed +24
-24
lines changed
Expand file tree Collapse file tree 11 files changed +24
-24
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ package(default_visibility = ["//visibility:public"])
1616
1717proto_library (
1818 name = "common_proto" ,
19- srcs = ["common/v1/common .proto" ],
19+ srcs = ["common.proto" ],
2020 deps = [
2121 "@com_google_protobuf//:timestamp_proto" ,
2222 ],
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ option java_multiple_files = true;
2525option java_package = "io.opencensus.proto.agent.common.v1" ;
2626option java_outer_classname = "CommonProto" ;
2727
28- option go_package = "github.com/census-instrumentation/opencensus-proto/gen-go/agentproto/commonproto /v1" ;
28+ option go_package = "github.com/census-instrumentation/opencensus-proto/gen-go/agent/common /v1" ;
2929
3030// Identifier metadata of the Node that connects to OpenCensus Agent.
3131// In the future we plan to extend the identifier proto definition to support
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ proto_library(
1818 name = "exporter_proto" ,
1919 srcs = ["exporter.proto" ],
2020 deps = [
21- "//opencensus/proto/trace:trace_proto" ,
22- "//opencensus/proto/metrics:metrics_proto"
21+ "//opencensus/proto/trace/v1 :trace_proto" ,
22+ "//opencensus/proto/metrics/v1 :metrics_proto"
2323 ],
2424)
2525
Original file line number Diff line number Diff line change @@ -17,26 +17,26 @@ syntax = "proto3";
1717// NOTE: This proto is experimental and is subject to change at this point.
1818// Please do not use it at the moment.
1919
20- package opencensus.proto.exporter ;
20+ package opencensus.proto.exporter.v1 ;
2121
22- import "opencensus/proto/trace/trace.proto" ;
23- import "opencensus/proto/metrics/metrics.proto" ;
22+ import "opencensus/proto/trace/v1/ trace.proto" ;
23+ import "opencensus/proto/metrics/v1/ metrics.proto" ;
2424
2525option java_multiple_files = true ;
26- option java_package = "io.opencensus.proto.exporter" ;
26+ option java_package = "io.opencensus.proto.exporter.v1 " ;
2727option java_outer_classname = "ExporterProto" ;
2828
29- option go_package = "github.com/census-instrumentation/opencensus-proto/gen-go/exporterproto " ;
29+ option go_package = "github.com/census-instrumentation/opencensus-proto/gen-go/exporter/v1 " ;
3030
3131message ExportSpanRequest {
32- repeated opencensus.proto.trace.Span spans = 1 ;
32+ repeated opencensus.proto.trace.v1. Span spans = 1 ;
3333}
3434
3535message ExportSpanResponse {
3636}
3737
3838message ExportMetricsRequest {
39- repeated opencensus.proto.metrics.Metric metrics = 1 ;
39+ repeated opencensus.proto.metrics.v1. Metric metrics = 1 ;
4040}
4141
4242message ExportMetricsResponse {
File renamed without changes.
Original file line number Diff line number Diff line change 1919
2020syntax = "proto3" ;
2121
22- package opencensus.proto.metrics ;
22+ package opencensus.proto.metrics.v1 ;
2323
2424import "google/protobuf/timestamp.proto" ;
2525
26- option go_package = "github.com/census-instrumentation/opencensus-proto/gen-go/metricsproto " ;
26+ option go_package = "github.com/census-instrumentation/opencensus-proto/gen-go/metrics/v1 " ;
2727
2828option java_multiple_files = true ;
29- option java_package = "io.opencensus.proto.metrics" ;
29+ option java_package = "io.opencensus.proto.metrics.v1 " ;
3030option java_outer_classname = "MetricsProto" ;
3131
3232// Defines a Metric which has one or more timeseries.
File renamed without changes.
Original file line number Diff line number Diff line change 1414
1515syntax = "proto3" ;
1616
17- package opencensus.proto.stats ;
17+ package opencensus.proto.stats.v1 ;
1818
1919import "google/protobuf/timestamp.proto" ;
2020
21- option go_package = "github.com/census-instrumentation/opencensus-proto/gen-go/statsproto " ;
21+ option go_package = "github.com/census-instrumentation/opencensus-proto/gen-go/stats/v1 " ;
2222
2323option java_multiple_files = true ;
24- option java_package = "io.opencensus.proto.stats" ;
24+ option java_package = "io.opencensus.proto.stats.v1 " ;
2525option java_outer_classname = "StatsProto" ;
2626
2727// TODO(bdrutu): Consider if this should be moved to a "tags" directory to match the API structure.
File renamed without changes.
Original file line number Diff line number Diff line change 1414
1515syntax = "proto3" ;
1616
17- package opencensus.proto.trace ;
17+ package opencensus.proto.trace.v1 ;
1818
1919import "google/protobuf/timestamp.proto" ;
2020import "google/protobuf/wrappers.proto" ;
2121
2222option java_multiple_files = true ;
23- option java_package = "io.opencensus.proto.trace" ;
23+ option java_package = "io.opencensus.proto.trace.v1 " ;
2424option java_outer_classname = "TraceProto" ;
2525
26- option go_package = "github.com/census-instrumentation/opencensus-proto/gen-go/traceproto " ;
26+ option go_package = "github.com/census-instrumentation/opencensus-proto/gen-go/trace/v1 " ;
2727
2828// A span represents a single operation within a trace. Spans can be
2929// nested to form a trace tree. Often, a trace contains a root span
@@ -367,4 +367,4 @@ message TruncatableString {
367367 // The number of bytes removed from the original string. If this
368368 // value is 0, then the string was not shortened.
369369 int32 truncated_byte_count = 2 ;
370- }
370+ }
You can’t perform that action at this time.
0 commit comments