Skip to content

Commit ab4e4a5

Browse files
committed
fix(stackdriver_exporter): filter resource attributes for gcp
1 parent f5d8a1e commit ab4e4a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/exporters/stackdriver/stackdriver_exporter.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ func (se *stackdriverExporter) setupOTelExporterOrDie() {
124124
gcpExporter, err := gcpmetric.New(
125125
gcpmetric.WithProjectID(se.config.GCEMetadata.ProjectID),
126126
gcpmetric.WithMetricDescriptorTypeFormatter(se.getMetricTypeFormatter()),
127+
gcpmetric.WithFilteredResourceAttributes(gcpmetric.NoAttributes),
127128
)
128129
if err != nil {
129130
klog.Fatalf("Failed to create Google Cloud Monitoring exporter: %v", err)

0 commit comments

Comments
 (0)