-
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.
feature: Add LogRecord Support (#16)
- Loading branch information
Showing
18 changed files
with
451 additions
and
268 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
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,21 @@ | ||
syntax = "proto3"; | ||
|
||
package odddotnet.proto.logs.v1; | ||
|
||
import "opentelemetry/proto/common/v1/common.proto"; | ||
import "opentelemetry/proto/resource/v1/resource.proto"; | ||
import "opentelemetry/proto/logs/v1/logs.proto"; | ||
|
||
option csharp_namespace = "OddDotNet.Proto.Logs.V1"; | ||
option java_multiple_files = true; | ||
option java_package = "io.odddotnet.proto.logs.v1"; | ||
option java_outer_classname = "LogsProto"; | ||
option go_package = "go.odddotnet.io/proto/otlp/logs/v1"; | ||
|
||
message FlatLog { | ||
opentelemetry.proto.logs.v1.LogRecord log = 1; | ||
opentelemetry.proto.resource.v1.Resource resource = 2; | ||
opentelemetry.proto.common.v1.InstrumentationScope instrumentation_scope = 3; | ||
string resource_schema_url = 4; | ||
string instrumentation_scope_schema_url = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
syntax = "proto3"; | ||
|
||
package odddotnet.proto.logs.v1; | ||
|
||
import "odddotproto/proto/common/v1/common.proto"; | ||
import "odddotproto/proto/common/v1/filters.proto"; | ||
import "odddotproto/proto/common/v1/properties.proto"; | ||
import "odddotproto/proto/resource/v1/resource_filters.proto"; | ||
import "opentelemetry/proto/logs/v1/logs.proto"; | ||
|
||
option csharp_namespace = "OddDotNet.Proto.Logs.V1"; | ||
option java_multiple_files = true; | ||
option java_package = "io.odddotnet.proto.logs.v1"; | ||
option java_outer_classname = "LogsProto"; | ||
option go_package = "go.odddotnet.io/proto/otlp/logs/v1"; | ||
|
||
message LogQueryRequest { | ||
repeated Where filters = 1; | ||
odddotnet.proto.common.v1.Take take = 2; | ||
optional odddotnet.proto.common.v1.Duration duration = 3; | ||
} | ||
|
||
message Where { | ||
oneof value { | ||
PropertyFilter property = 1; | ||
OrFilter or = 2; | ||
odddotnet.proto.common.v1.InstrumentationScopeFilter instrumentation_scope = 3; | ||
odddotnet.proto.resource.v1.ResourceFilter resource = 4; | ||
odddotnet.proto.common.v1.StringProperty instrumentation_scope_schema_url = 5; | ||
odddotnet.proto.common.v1.StringProperty resource_schema_url = 6; | ||
} | ||
} | ||
|
||
message PropertyFilter { | ||
reserved 4; | ||
oneof value { | ||
odddotnet.proto.common.v1.UInt64Property time_unix_nano = 1; | ||
odddotnet.proto.common.v1.UInt64Property observed_time_unix_nano = 11; | ||
SeverityNumberProperty severity_number = 2; | ||
odddotnet.proto.common.v1.StringProperty severity_text = 3; | ||
odddotnet.proto.common.v1.AnyValueProperty body = 5; | ||
odddotnet.proto.common.v1.KeyValueProperty attribute = 6; | ||
odddotnet.proto.common.v1.UInt32Property dropped_attributes_count = 7; | ||
odddotnet.proto.common.v1.UInt32Property flags = 8; | ||
odddotnet.proto.common.v1.ByteStringProperty trace_id = 9; | ||
odddotnet.proto.common.v1.ByteStringProperty span_id = 10; | ||
} | ||
} | ||
|
||
message OrFilter { | ||
repeated Where filters = 1; | ||
} | ||
|
||
message SeverityNumberProperty { | ||
odddotnet.proto.common.v1.EnumCompareAsType compare_as = 1; | ||
opentelemetry.proto.logs.v1.SeverityNumber compare = 2; | ||
} |
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.logs.v1; | ||
|
||
import "odddotproto/proto/logs/v1/flat_log.proto"; | ||
|
||
option csharp_namespace = "OddDotNet.Proto.Logs.V1"; | ||
option java_multiple_files = true; | ||
option java_package = "io.odddotnet.proto.logs.v1"; | ||
option java_outer_classname = "LogsProto"; | ||
option go_package = "go.odddotnet.io/proto/otlp/logs/v1"; | ||
|
||
message LogQueryResponse { | ||
repeated FlatLog logs = 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,16 @@ | ||
syntax = "proto3"; | ||
|
||
package odddotnet.proto.logs.v1; | ||
|
||
import "odddotproto/proto/logs/v1/log_query_request.proto"; | ||
import "odddotproto/proto/logs/v1/log_query_response.proto"; | ||
|
||
option csharp_namespace = "OddDotNet.Proto.Logs.V1"; | ||
option java_multiple_files = true; | ||
option java_package = "io.odddotnet.proto.logs.v1"; | ||
option java_outer_classname = "LogsProto"; | ||
option go_package = "go.odddotnet.io/proto/otlp/logs/v1"; | ||
|
||
service LogQueryService { | ||
rpc Query(LogQueryRequest) returns (LogQueryResponse); | ||
} |
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
Oops, something went wrong.