Skip to content

Commit 9bd6b60

Browse files
authored
ENGTAI-69966: Add compression config (#170)
* ENGTAI-69966: Add compression config * use compression type enum
1 parent d829e62 commit 9bd6b60

6 files changed

Lines changed: 143 additions & 61 deletions

File tree

gen/go/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.24
55
require (
66
github.com/ghodss/yaml v1.0.0
77
github.com/stretchr/testify v1.11.1
8-
google.golang.org/protobuf v1.36.8
8+
google.golang.org/protobuf v1.36.10
99
)
1010

1111
require (

gen/go/go.sum

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
22
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
33
github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk=
44
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
5-
github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
6-
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
5+
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
6+
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
77
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
88
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
99
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
1010
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
11-
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
12-
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
13-
google.golang.org/protobuf v1.36.8 h1:xHScyCOEuuwZEc6UtSOvPbAT4zRh0xcNRYekJwfqyMc=
14-
google.golang.org/protobuf v1.36.8/go.mod h1:fuxRtAxBytpl4zzqUh6/eyUujkJdNiuEkXntxiD/uRU=
11+
google.golang.org/protobuf v1.36.10 h1:AYd7cD/uASjIL6Q9LiTjz8JLcrh/88q5UObnmY3aOOE=
12+
google.golang.org/protobuf v1.36.10/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco=
1513
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
1614
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
1715
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=

gen/go/proto/v1/config.proto

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ message Reporting {
7373

7474
// When `true`, modifies grpc resolver to use dns instead of passthrough and configure round robin client side loadbalancing
7575
google.protobuf.BoolValue enable_grpc_loadbalancing = 9;
76+
77+
// Compression type
78+
CompressionType compression_type = 10;
7679
}
7780

7881
// Message describes what message should be considered for certain DataCapture option
@@ -219,4 +222,9 @@ message LogsExport {
219222
// it'll only be available in the local log file.
220223

221224
LogLevel level = 2;
225+
}
226+
227+
enum CompressionType {
228+
COMPRESSION_TYPE_UNSPECIFIED = 0;
229+
COMPRESSION_TYPE_GZIP = 1;
222230
}

gen/go/v1/config.pb.go

Lines changed: 116 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/go/v1/config.pbloader.go

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/hypertrace/agent/config/v1/config.proto

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ message Reporting {
7373

7474
// When `true`, modifies grpc resolver to use dns instead of passthrough and configure round robin client side loadbalancing
7575
google.protobuf.BoolValue enable_grpc_loadbalancing = 9;
76+
77+
// Compression type
78+
CompressionType compression_type = 10;
7679
}
7780

7881
// Message describes what message should be considered for certain DataCapture option
@@ -219,4 +222,9 @@ message LogsExport {
219222
// it'll only be available in the local log file.
220223

221224
LogLevel level = 2;
225+
}
226+
227+
enum CompressionType {
228+
COMPRESSION_TYPE_UNSPECIFIED = 0;
229+
COMPRESSION_TYPE_GZIP = 1;
222230
}

0 commit comments

Comments
 (0)