-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: re-enable compilation checks, update otel and protobuf (#2254)
* chore: re-enable compilation checks, update otel and protobuf * chore: fix failing tests * fix: update grpc server startup config * feat: consolidate otel trace transform module into a Logs.Processor * chore: compilation warnings * chore: fix failing tests
- Loading branch information
Showing
24 changed files
with
575 additions
and
223 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 |
---|---|---|
|
@@ -2,3 +2,4 @@ elixir 1.17.3-otp-27 | |
nodejs 18.13.0 | ||
rust 1.64.0 | ||
erlang 27.1.2 | ||
protoc 28.0 |
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
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
50 changes: 50 additions & 0 deletions
50
...logflare_grpc/opentelemetry/proto/collector/profiles/v1development/profiles_service.pb.ex
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,50 @@ | ||
defmodule Opentelemetry.Proto.Collector.Profiles.V1development.ExportProfilesServiceRequest do | ||
@moduledoc false | ||
|
||
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" | ||
|
||
field :resource_profiles, 1, | ||
repeated: true, | ||
type: Opentelemetry.Proto.Profiles.V1development.ResourceProfiles, | ||
json_name: "resourceProfiles" | ||
end | ||
|
||
defmodule Opentelemetry.Proto.Collector.Profiles.V1development.ExportProfilesServiceResponse do | ||
@moduledoc false | ||
|
||
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" | ||
|
||
field :partial_success, 1, | ||
type: Opentelemetry.Proto.Collector.Profiles.V1development.ExportProfilesPartialSuccess, | ||
json_name: "partialSuccess" | ||
end | ||
|
||
defmodule Opentelemetry.Proto.Collector.Profiles.V1development.ExportProfilesPartialSuccess do | ||
@moduledoc false | ||
|
||
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" | ||
|
||
field :rejected_profiles, 1, type: :int64, json_name: "rejectedProfiles" | ||
field :error_message, 2, type: :string, json_name: "errorMessage" | ||
end | ||
|
||
defmodule Opentelemetry.Proto.Collector.Profiles.V1development.ProfilesService.Service do | ||
@moduledoc false | ||
|
||
use GRPC.Service, | ||
name: "opentelemetry.proto.collector.profiles.v1development.ProfilesService", | ||
protoc_gen_elixir_version: "0.13.0" | ||
|
||
rpc( | ||
:Export, | ||
Opentelemetry.Proto.Collector.Profiles.V1development.ExportProfilesServiceRequest, | ||
Opentelemetry.Proto.Collector.Profiles.V1development.ExportProfilesServiceResponse | ||
) | ||
end | ||
|
||
defmodule Opentelemetry.Proto.Collector.Profiles.V1development.ProfilesService.Stub do | ||
@moduledoc false | ||
|
||
use GRPC.Stub, | ||
service: Opentelemetry.Proto.Collector.Profiles.V1development.ProfilesService.Service | ||
end |
27 changes: 15 additions & 12 deletions
27
lib/logflare_grpc/opentelemetry/proto/collector/trace/v1/trace_service.pb.ex
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 |
---|---|---|
@@ -1,46 +1,49 @@ | ||
defmodule Opentelemetry.Proto.Collector.Trace.V1.ExportTraceServiceRequest do | ||
@moduledoc false | ||
use Protobuf, protoc_gen_elixir_version: "0.11.0", syntax: :proto3 | ||
|
||
field(:resource_spans, 1, | ||
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" | ||
|
||
field :resource_spans, 1, | ||
repeated: true, | ||
type: Opentelemetry.Proto.Trace.V1.ResourceSpans, | ||
json_name: "resourceSpans" | ||
) | ||
end | ||
|
||
defmodule Opentelemetry.Proto.Collector.Trace.V1.ExportTraceServiceResponse do | ||
@moduledoc false | ||
use Protobuf, protoc_gen_elixir_version: "0.11.0", syntax: :proto3 | ||
|
||
field(:partial_success, 1, | ||
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" | ||
|
||
field :partial_success, 1, | ||
type: Opentelemetry.Proto.Collector.Trace.V1.ExportTracePartialSuccess, | ||
json_name: "partialSuccess" | ||
) | ||
end | ||
|
||
defmodule Opentelemetry.Proto.Collector.Trace.V1.ExportTracePartialSuccess do | ||
@moduledoc false | ||
use Protobuf, protoc_gen_elixir_version: "0.11.0", syntax: :proto3 | ||
|
||
field(:rejected_spans, 1, type: :int64, json_name: "rejectedSpans") | ||
field(:error_message, 2, type: :string, json_name: "errorMessage") | ||
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" | ||
|
||
field :rejected_spans, 1, type: :int64, json_name: "rejectedSpans" | ||
field :error_message, 2, type: :string, json_name: "errorMessage" | ||
end | ||
|
||
defmodule Opentelemetry.Proto.Collector.Trace.V1.TraceService.Service do | ||
@moduledoc false | ||
|
||
use GRPC.Service, | ||
name: "opentelemetry.proto.collector.trace.v1.TraceService", | ||
protoc_gen_elixir_version: "0.11.0" | ||
protoc_gen_elixir_version: "0.13.0" | ||
|
||
rpc( | ||
:Export, | ||
stream(Opentelemetry.Proto.Collector.Trace.V1.ExportTraceServiceRequest), | ||
stream(Opentelemetry.Proto.Collector.Trace.V1.ExportTraceServiceResponse) | ||
Opentelemetry.Proto.Collector.Trace.V1.ExportTraceServiceRequest, | ||
Opentelemetry.Proto.Collector.Trace.V1.ExportTraceServiceResponse | ||
) | ||
end | ||
|
||
defmodule Opentelemetry.Proto.Collector.Trace.V1.TraceService.Stub do | ||
@moduledoc false | ||
|
||
use GRPC.Stub, service: Opentelemetry.Proto.Collector.Trace.V1.TraceService.Service | ||
end |
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.