Skip to content

Commit b974c9a

Browse files
committed
use compression type enum
1 parent 9a6ae60 commit b974c9a

File tree

5 files changed

+125
-70
lines changed

5 files changed

+125
-70
lines changed

ENV_VARS.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Agents can be configured using environment variables:
1414
| HT_REPORTING_CERT_FILE | Certificate file containing the CA to verify the server's certificate. This is for private certificates. If this is set then `secure` above should also be set to `true`. |
1515
| HT_REPORTING_METRIC_ENDPOINT | Represents the endpoint for reporting the metrics. For OTLP metric reporter type use http://api.traceable.ai:4317 |
1616
| HT_REPORTING_ENABLE_GRPC_LOADBALANCING | When `true`, modifies grpc resolver to use dns instead of passthrough and configure round robin client side loadbalancing |
17-
| HT_REPORTING_COMPRESSION_ENABLED | Enable compression |
1817
| HT_DATA_CAPTURE_HTTP_HEADERS_REQUEST | When `false` it disables the capture for the request in a client/request operation |
1918
| HT_DATA_CAPTURE_HTTP_HEADERS_RESPONSE | When `false` it disables the capture for the response in a client/request operation |
2019
| HT_DATA_CAPTURE_HTTP_BODY_REQUEST | When `false` it disables the capture for the request in a client/request operation |

gen/go/proto/v1/config.proto

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ message Reporting {
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;
7676

77-
// Enable compression
78-
google.protobuf.BoolValue compression_enabled = 10;
77+
// Compression type
78+
CompressionType compression_type = 10;
7979
}
8080

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

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

gen/go/v1/config.pb.go

Lines changed: 106 additions & 56 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: 5 additions & 9 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: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ message Reporting {
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;
7676

77-
// Enable compression
78-
google.protobuf.BoolValue compression_enabled = 10;
77+
// Compression type
78+
CompressionType compression_type = 10;
7979
}
8080

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

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

0 commit comments

Comments
 (0)