Skip to content

Commit

Permalink
Draft of telemetry wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
george-dorin committed Oct 6, 2023
1 parent 5e58116 commit eef8077
Show file tree
Hide file tree
Showing 6 changed files with 555 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/loop/internal/pb/generate.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//go:generate protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative relayer.proto
//go:generate protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative reporting.proto
//go:generate protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative median.proto
//go:generate protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative telemetry.proto
package pb
260 changes: 260 additions & 0 deletions pkg/loop/internal/pb/telemetry.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions pkg/loop/internal/pb/telemetry.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
syntax = "proto3";

option go_package = "github.com/smartcontractkit/chainlink-relay/pkg/loop/internal/pb";

package loop;

import "google/protobuf/empty.proto";

message RelayID {
string network = 1;
string chainId = 2;
}

message TelemetryMessage {
RelayID relayID = 1;
string contractID = 2;
string telemetryType = 3;
bytes payload = 4;
}

service Telemetry {
rpc Send(TelemetryMessage) returns (google.protobuf.Empty);
}
Loading

0 comments on commit eef8077

Please sign in to comment.