From ab7d98523a25f95ce6f2dd40a7cf59322134cdea Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Date: Thu, 2 Jul 2020 09:17:24 -0400 Subject: [PATCH] fix: APM -> tracing --- packages/tracing/README.md | 10 +++++----- packages/tracing/package.json | 6 +++--- packages/tracing/rollup.config.js | 8 ++++---- packages/tracing/src/hubextensions.ts | 2 +- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/packages/tracing/README.md b/packages/tracing/README.md index 1d03e21d0c32..05b45f2195f4 100644 --- a/packages/tracing/README.md +++ b/packages/tracing/README.md @@ -5,11 +5,11 @@

-# Sentry APM Extensions +# Sentry Tracing Extensions -[![npm version](https://img.shields.io/npm/v/@sentry/apm.svg)](https://www.npmjs.com/package/@sentry/apm) -[![npm dm](https://img.shields.io/npm/dm/@sentry/apm.svg)](https://www.npmjs.com/package/@sentry/apm) -[![npm dt](https://img.shields.io/npm/dt/@sentry/apm.svg)](https://www.npmjs.com/package/@sentry/apm) +[![npm version](https://img.shields.io/npm/v/@sentry/tracing.svg)](https://www.npmjs.com/package/@sentry/tracing) +[![npm dm](https://img.shields.io/npm/dm/@sentry/tracing.svg)](https://www.npmjs.com/package/@sentry/tracing) +[![npm dt](https://img.shields.io/npm/dt/@sentry/tracing.svg)](https://www.npmjs.com/package/@sentry/tracing) [![typedoc](https://img.shields.io/badge/docs-typedoc-blue.svg)](http://getsentry.github.io/sentry-javascript/) ## Links @@ -19,4 +19,4 @@ ## General -This package contains extensions to the `@sentry/hub` to enable APM related functionality. It also provides integrations for Browser and Node that provide a good experience out of the box. +This package contains extensions to the `@sentry/hub` to enable Sentry AM related functionality. It also provides integrations for Browser and Node that provide a good experience out of the box. diff --git a/packages/tracing/package.json b/packages/tracing/package.json index 42ca6823fe7f..e7b5e8fe6ae8 100644 --- a/packages/tracing/package.json +++ b/packages/tracing/package.json @@ -1,9 +1,9 @@ { - "name": "@sentry/apm", + "name": "@sentry/tracing", "version": "5.19.0", - "description": "Extensions for APM", + "description": "Extensions for Tracing", "repository": "git://github.com/getsentry/sentry-javascript.git", - "homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/apm", + "homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/tracing", "author": "Sentry", "license": "BSD-3-Clause", "engines": { diff --git a/packages/tracing/rollup.config.js b/packages/tracing/rollup.config.js index 019664ab978f..ca17a2f999bd 100644 --- a/packages/tracing/rollup.config.js +++ b/packages/tracing/rollup.config.js @@ -61,19 +61,19 @@ const bundleConfig = { ...plugins, license({ sourcemap: true, - banner: `/*! @sentry/apm & @sentry/browser <%= pkg.version %> (${commitHash}) | https://github.com/getsentry/sentry-javascript */`, + banner: `/*! @sentry/tracing & @sentry/browser <%= pkg.version %> (${commitHash}) | https://github.com/getsentry/sentry-javascript */`, }), ], }; export default [ - // ES5 Browser APM Bundle + // ES5 Browser Tracing Bundle { ...bundleConfig, input: 'src/index.bundle.ts', output: { ...bundleConfig.output, - file: 'build/bundle.apm.js', + file: 'build/bundle.tracing.js', }, plugins: bundleConfig.plugins, }, @@ -82,7 +82,7 @@ export default [ input: 'src/index.bundle.ts', output: { ...bundleConfig.output, - file: 'build/bundle.apm.min.js', + file: 'build/bundle.tracing.min.js', }, // Uglify has to be at the end of compilation, BUT before the license banner plugins: bundleConfig.plugins diff --git a/packages/tracing/src/hubextensions.ts b/packages/tracing/src/hubextensions.ts index 445225ab6622..8480ffbf1bde 100644 --- a/packages/tracing/src/hubextensions.ts +++ b/packages/tracing/src/hubextensions.ts @@ -84,7 +84,7 @@ function startSpan(this: Hub, context: SpanContext): Transaction | Span { } /** - * This patches the global object and injects the APM extensions methods + * This patches the global object and injects the Tracing extensions methods */ export function addExtensionMethods(): void { const carrier = getMainCarrier();