Skip to content

Commit

Permalink
fix linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
psx95 committed Jun 4, 2024
1 parent 2f5a74c commit 0f9bfad
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions exporter/metric/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ var userAgent = fmt.Sprintf("opentelemetry-go %s; google-cloud-metric-exporter %
// MonitoredResourceDescription is the struct which holds information required to map OTel resource to specific
// Google Cloud MonitoredResource.
type MonitoredResourceDescription struct {
mrType string
mrLabels map[string]struct{}
mrType string
}

// Option is function type that is passed to the exporter initialization function.
Expand All @@ -54,6 +54,10 @@ type options struct {
// add to metrics as metric labels. By default, it adds service.name,
// service.namespace, and service.instance.id.
resourceAttributeFilter attribute.Filter
// monitoredResourceDescription sets whether to attempt mapping the OTel Resource to a specific
// Google Cloud Monitored Resource. When provided, the exporter attempts to map only to the provided
// monitored resource type.
monitoredResourceDescription MonitoredResourceDescription
// projectID is the identifier of the Cloud Monitoring
// project the user is uploading the stats data to.
// If not set, this will default to your "Application Default Credentials".
Expand Down Expand Up @@ -83,11 +87,6 @@ type options struct {
// createServiceTimeSeries sets whether to create timeseries using `CreateServiceTimeSeries`.
// Implicitly, this sets `disableCreateMetricDescriptors` to true.
createServiceTimeSeries bool

// monitoredResourceDescription sets whether to attempt mapping the OTel Resource to a specific
// Google Cloud Monitored Resource. When provided, the exporter attempts to map only to the provided
// monitored resource type.
monitoredResourceDescription MonitoredResourceDescription
}

// WithProjectID sets Google Cloud Platform project as projectID.
Expand Down

0 comments on commit 0f9bfad

Please sign in to comment.