Skip to content

Commit

Permalink
refactor(exporter-metrics-otlp-http): fix eslint warning (#5396)
Browse files Browse the repository at this point in the history
  • Loading branch information
chancancode authored Jan 30, 2025
1 parent e265e47 commit bb21233
Showing 1 changed file with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,18 +111,14 @@ function chooseTemporalitySelector(
return chooseTemporalitySelectorFromEnvironment();
}

const DEFAULT_AGGREGATION = Object.freeze({
type: AggregationType.DEFAULT,
});

function chooseAggregationSelector(
config: OTLPMetricExporterOptions | undefined
) {
if (config?.aggregationPreference) {
return config.aggregationPreference;
} else {
return (_instrumentType: any) => {
return {
type: AggregationType.DEFAULT,
};
};
}
): AggregationSelector {
return config?.aggregationPreference ?? (() => DEFAULT_AGGREGATION);
}

export class OTLPMetricExporterBase
Expand Down

0 comments on commit bb21233

Please sign in to comment.