-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: Refactor to use OTEL messages (#11)
* Modified to depend on opentelemetry-proto. * Added `FlatSpan` to flatten out `TracesData`. * Avoids having a separate, matching `Span` data structure.
- Loading branch information
Showing
16 changed files
with
95 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "submodules"] | ||
path = submodules | ||
url = https://github.com/open-telemetry/opentelemetry-proto.git |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
syntax = "proto3"; | ||
|
||
package odddotnet.proto.trace.v1; | ||
|
||
option csharp_namespace = "OddDotNet.Proto.Trace.V1"; | ||
|
||
import "opentelemetry/proto/trace/v1/trace.proto"; | ||
import "opentelemetry/proto/resource/v1/resource.proto"; | ||
import "opentelemetry/proto/common/v1/common.proto"; | ||
|
||
message FlatSpan { | ||
opentelemetry.proto.trace.v1.Span span = 1; | ||
opentelemetry.proto.resource.v1.Resource resource = 2; | ||
opentelemetry.proto.common.v1.InstrumentationScope instrumentationScope = 3; | ||
string resourceSchemaUrl = 4; | ||
string instrumentationScopeSchemaUrl = 5; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
syntax = "proto3"; | ||
|
||
package odddotnet.proto.trace.v1; | ||
|
||
option csharp_namespace = "OddDotNet.Proto.Trace.V1"; | ||
|
||
import "flat_span.proto"; | ||
|
||
message SpanQueryResponse { | ||
repeated FlatSpan spans = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
syntax = "proto3"; | ||
|
||
package odddotnet.proto.trace.v1; | ||
|
||
option csharp_namespace = "OddDotNet.Proto.Trace.V1"; | ||
|
||
import "span_query_request.proto"; | ||
import "span_query_response.proto"; | ||
import "span_reset_request.proto"; | ||
import "span_reset_response.proto"; | ||
|
||
service SpanQueryService { | ||
rpc Query(SpanQueryRequest) returns (SpanQueryResponse); | ||
rpc Reset(SpanResetRequest) returns (SpanResetResponse); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
syntax = "proto3"; | ||
|
||
package odddotnet.proto.trace.v1; | ||
|
||
option csharp_namespace = "OddDotNet.Proto.Trace.V1"; | ||
|
||
message SpanResetRequest{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
syntax = "proto3"; | ||
|
||
package odddotnet.proto.trace.v1; | ||
|
||
option csharp_namespace = "OddDotNet.Proto.Trace.V1"; | ||
|
||
message SpanResetResponse{} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Submodule submodules
added at
a76fe9