Skip to content

Commit

Permalink
[chore] Remove conditional statement on metrics.go.tmpl NewMetricsBui…
Browse files Browse the repository at this point in the history
  • Loading branch information
Dainerx committed Feb 17, 2025
1 parent 0d2f646 commit c7f4818
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cmd/mdatagen/internal/templates/metrics.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,7 @@ func WithStartTime(startTime pcommon.Timestamp) MetricBuilderOption {
})
}

{{- if or isReceiver isScraper }}
func NewMetricsBuilder(mbc MetricsBuilderConfig, settings {{ .Status.Class }}.Settings, options ...MetricBuilderOption) *MetricsBuilder {
{{- end }}
{{- range $name, $metric := .Metrics }}
{{- if $metric.Warnings.IfEnabled }}
if mbc.Metrics.{{ $name.Render }}.Enabled {
Expand Down

0 comments on commit c7f4818

Please sign in to comment.