You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: packages/exporter-trace-otlp-grpc/README.md
+26
Original file line number
Diff line number
Diff line change
@@ -107,6 +107,32 @@ provider.register();
107
107
108
108
Note, that this will only work if TLS is also configured on the server.
109
109
110
+
By default no compression will be used. To use compression, set it programmatically in `collectorOptions` or with environment variables. Supported compression options: `gzip` and `none`.
> Providing `compression` with `collectorOptions` takes precedence and overrides compression set with environment variables.
125
+
126
+
## Environment Variable Configuration
127
+
128
+
Set compression with environment variables.
129
+
130
+
```shell
131
+
OTEL_EXPORTER_OTLP_TRACES_COMPRESSION=gzip
132
+
```
133
+
134
+
> Compression set programatically in `collectorOptions` takes precedence over compression set with environment variables. `OTEL_EXPORTER_OTLP_TRACES_COMPRESSION` takes precedence and overrides `OTEL_EXPORTER_OTLP_COMPRESSION`.
135
+
110
136
## Running opentelemetry-collector locally to see the traces
0 commit comments