Skip to content

Commit 45b86cd

Browse files
committed
Updates
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
1 parent cd8dfd9 commit 45b86cd

24 files changed

Lines changed: 143684 additions & 97737 deletions

packages/kbn-apm/package.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

packages/kbn-apm/tsconfig.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

packages/kbn-apm/yarn.lock

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/kbn-optimizer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"dependencies": {
1313
"@babel/cli": "^7.10.5",
14-
"@kbn/apm": "1.0.0",
14+
"@kbn/utils": "1.0.0",
1515
"@kbn/babel-preset": "1.0.0",
1616
"@kbn/dev-utils": "1.0.0",
1717
"@kbn/ui-shared-deps": "1.0.0",

packages/kbn-optimizer/src/apm_optimizer_stats.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* under the License.
1818
*/
1919

20-
import { Agent } from '@kbn/apm';
20+
import { apm } from '@kbn/utils';
2121
import { tap } from 'rxjs/operators';
2222

2323
import { OptimizerConfig } from './optimizer';
@@ -37,10 +37,10 @@ export function apmOptimizerStats(config: OptimizerConfig) {
3737
if (!loggedInit) {
3838
loggedInit = true;
3939

40-
trans = Agent.startTransaction('@kbn/optimizer', 'cli');
40+
trans = apm.Agent.startTransaction('@kbn/optimizer', 'cli');
4141

4242
const bundlesCount = state.onlineBundles.length + state.offlineBundles.length;
43-
Agent.addLabels({
43+
apm.Agent.addLabels({
4444
optimizer_bundle_count: bundlesCount,
4545
optimizer_bundle_cache_count: state.offlineBundles.length,
4646
optimizer_bundle_cache_pct: Math.round(
@@ -61,7 +61,7 @@ export function apmOptimizerStats(config: OptimizerConfig) {
6161
if (state.phase === 'issue') {
6262
for (const b of state.compilerStates) {
6363
if (b.type === 'compiler issue') {
64-
Agent.captureError(b.failure, {
64+
apm.Agent.captureError(b.failure, {
6565
custom: {
6666
optimizer_bundle_id: b.bundleId,
6767
},

packages/kbn-optimizer/src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* under the License.
1818
*/
1919

20-
import apm from '@kbn/apm';
20+
import { apm } from '@kbn/utils';
2121

2222
apm.start({
2323
metricsInterval: 1,

packages/kbn-pm/dist/index.js

Lines changed: 143410 additions & 97651 deletions
Large diffs are not rendered by default.

packages/kbn-pm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"write-pkg": "^4.0.0"
6767
},
6868
"dependencies": {
69-
"@kbn/apm": "1.0.0",
69+
"@kbn/utils": "1.0.0",
7070
"tslib": "^2.0.0"
7171
}
7272
}

packages/kbn-pm/src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* under the License.
1818
*/
1919

20-
import apm from '@kbn/apm';
20+
import { apm } from '@kbn/utils';
2121

2222
apm.start({
2323
metricsInterval: 1,

packages/kbn-pm/src/commands/bootstrap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* under the License.
1818
*/
1919

20-
import apm from '@kbn/apm';
20+
import { apm } from '@kbn/utils';
2121
import { linkProjectExecutables } from '../utils/link_project_executables';
2222
import { log } from '../utils/log';
2323
import { parallelizeBatches } from '../utils/parallelize';

0 commit comments

Comments
 (0)