Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exporter: fix setting GetMetricDescriptor call options. #688

Merged
merged 1 commit into from Jul 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion exporter/metric/metric.go
Expand Up @@ -112,7 +112,7 @@
}

if o.compression == "gzip" {
client.CallOptions.GetMetricDescriptor = append(client.CallOptions.CreateMetricDescriptor,
client.CallOptions.GetMetricDescriptor = append(client.CallOptions.GetMetricDescriptor,

Check warning on line 115 in exporter/metric/metric.go

View check run for this annotation

Codecov / codecov/patch

exporter/metric/metric.go#L115

Added line #L115 was not covered by tests
gax.WithGRPCOptions(grpc.UseCompressor(gzip.Name)))
client.CallOptions.CreateMetricDescriptor = append(client.CallOptions.CreateMetricDescriptor,
gax.WithGRPCOptions(grpc.UseCompressor(gzip.Name)))
Expand Down