Skip to content

Commit

Permalink
exporter: fix setting GetMetricDescriptor call options. (#688)
Browse files Browse the repository at this point in the history
Fix GetMetricDescriptor compression
  • Loading branch information
nimf committed Jul 26, 2023
1 parent f2188d1 commit fbcefa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporter/metric/metric.go
Expand Up @@ -112,7 +112,7 @@ func newMetricExporter(o *options) (*metricExporter, error) {
}

if o.compression == "gzip" {
client.CallOptions.GetMetricDescriptor = append(client.CallOptions.CreateMetricDescriptor,
client.CallOptions.GetMetricDescriptor = append(client.CallOptions.GetMetricDescriptor,
gax.WithGRPCOptions(grpc.UseCompressor(gzip.Name)))
client.CallOptions.CreateMetricDescriptor = append(client.CallOptions.CreateMetricDescriptor,
gax.WithGRPCOptions(grpc.UseCompressor(gzip.Name)))
Expand Down

0 comments on commit fbcefa9

Please sign in to comment.