Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 311abc1

Browse files
authored
Removes redundant range min/max from distributedValues for [exporter-stackdriver] (#148)
Solves the error: UnhandledPromiseRejectionWarning: Error: Field timeSeries[0].points[0].distributionValue.range is not allowed: Distribution range is not yet supported.
1 parent f9eff1a commit 311abc1

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

packages/opencensus-exporter-stackdriver/src/stackdriver-monitoring.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ export class StackdriverStatsExporter implements StatsEventListener {
152152
count: distribution.count.toString(),
153153
mean: distribution.mean,
154154
sumOfSquaredDeviation: distribution.sumSquaredDeviations,
155-
range: {min: distribution.min, max: distribution.max},
156155
bucketOptions: {
157156
explicitBuckets:
158157
{bounds: this.getBucketBoundaries(distribution.buckets)}

packages/opencensus-exporter-stackdriver/src/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ export interface Distribution {
8585
count: string;
8686
mean: number;
8787
sumOfSquaredDeviation: number;
88-
range: {min: number; max: number;};
8988
bucketOptions: {explicitBuckets: {bounds: number[];}};
9089
bucketCounts: number[];
9190
}

0 commit comments

Comments
 (0)