Skip to content

Commit 8505a61

Browse files
authored
fix(sdk-metrics): remove invalid default value for 'startTime' param to ExponentialHistogramAccumulation (#5763)
1 parent 04a8150 commit 8505a61

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ For notes on migrating to 2.x / 0.200.x see [the upgrade guide](doc/upgrade-to-2
1616

1717
### :bug: Bug Fixes
1818

19+
* fix(sdk-metrics): Remove invalid default value for `startTime` param to ExponentialHistogramAccumulation. This only impacted the closurescript compiler. [#5763](https://github.com/open-telemetry/opentelemetry-js/pull/5763) @trentm
20+
1921
### :books: Documentation
2022

2123
### :house: Internal

packages/sdk-metrics/src/aggregator/ExponentialHistogram.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const MIN_MAX_SIZE = 2;
6565

6666
export class ExponentialHistogramAccumulation implements Accumulation {
6767
constructor(
68-
public startTime: HrTime = startTime,
68+
public startTime: HrTime,
6969
private _maxSize = DEFAULT_MAX_SIZE,
7070
private _recordMinMax = true,
7171
private _sum = 0,

0 commit comments

Comments
 (0)