Skip to content

Commit

Permalink
chore(deps): update otel deps to latest (#4217)
Browse files Browse the repository at this point in the history
There was a recent 1.26.0/0.53.0 OTel release.

Also, fix opentelemetry-metrics tests for fix in otel/sdk-metrics package to
use *inclusive* upper bounds in histograms.

Refs: open-telemetry/opentelemetry-js#4935
  • Loading branch information
trentm authored Sep 9, 2024
1 parent 5f92444 commit e4838b9
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 99 deletions.
76 changes: 38 additions & 38 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions test/opentelemetry-metrics/fixtures.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@ async function checkEventsHaveTestMetrics(t, events, extraMetricNames = []) {
// A histogram that we expect to have the APM agent default buckets.
m = event.metricset.samples.test_histogram_defbuckets;
t.equal(m.type, 'histogram', 'test_histogram_defbuckets.type');
t.equal(m.counts.length, 3, 'test_histogram_defbuckets.counts');
t.equal(m.counts.length, 2, 'test_histogram_defbuckets.counts');
// The test file recorded values of 2, 3, and 4. The expected converted values
// are the midpoints between the default bucket boundaries. For example,
// 3 is between bucket boundaries (2.82843, 4], whose midpoint is 3.414215.
t.deepEqual(
m.values,
[2.414215, 3.414215, 4.828425],
[1.7071049999999999, 3.414215],
'test_histogram_defbuckets.values',
);
}
Expand All @@ -141,7 +141,7 @@ async function checkEventsHaveTestMetrics(t, events, extraMetricNames = []) {
// buckets in `[0, 1, 2, 3, 4, 5]`. After conversion to APM server
// intake format, the values are the midpoints of those buckets.
t.equal(m.counts.length, 3, 'test_histogram_confbuckets.counts');
t.deepEqual(m.values, [2.5, 3.5, 4.5], 'test_histogram_confbuckets.values');
t.deepEqual(m.values, [1.5, 2.5, 3.5], 'test_histogram_confbuckets.values');
}
}

Expand Down
104 changes: 46 additions & 58 deletions test/opentelemetry-metrics/fixtures/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e4838b9

Please sign in to comment.