@sentry/ember 7.48.0 → 7.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/addon/index.ts CHANGED
@@ -4,7 +4,7 @@ import { macroCondition, isDevelopingApp, getOwnConfig } from '@embroider/macros
4
4
  import { next } from '@ember/runloop';
5
5
  import { assert, warn } from '@ember/debug';
6
6
  import Ember from 'ember';
7
- import { timestampWithMs, GLOBAL_OBJ } from '@sentry/utils';
7
+ import { timestampInSeconds, GLOBAL_OBJ } from '@sentry/utils';
8
8
  import { GlobalConfig, OwnConfig } from './types';
9
9
 
10
10
  function _getSentryInitConfig() {
@@ -68,7 +68,7 @@ export const getActiveTransaction = () => {
68
68
 
69
69
  export const instrumentRoutePerformance = (BaseRoute: any) => {
70
70
  const instrumentFunction = async (op: string, description: string, fn: Function, args: any) => {
71
- const startTimestamp = timestampWithMs();
71
+ const startTimestamp = timestampInSeconds();
72
72
  const result = await fn(...args);
73
73
 
74
74
  const currentTransaction = getActiveTransaction();
@@ -6,7 +6,7 @@ import { ExtendedBackburner } from '@sentry/ember/runloop';
6
6
  import { Span, Transaction } from '@sentry/types';
7
7
  import { EmberRunQueues } from '@ember/runloop/-private/types';
8
8
  import { getActiveTransaction } from '..';
9
- import { browserPerformanceTimeOrigin, GLOBAL_OBJ, timestampWithMs } from '@sentry/utils';
9
+ import { browserPerformanceTimeOrigin, GLOBAL_OBJ, timestampInSeconds } from '@sentry/utils';
10
10
  import { macroCondition, isTesting, getOwnConfig } from '@embroider/macros';
11
11
  import { EmberSentryConfig, GlobalConfig, OwnConfig } from '../types';
12
12
  import RouterService from '@ember/routing/router-service';
@@ -182,14 +182,14 @@ function _instrumentEmberRunloop(config: EmberSentryConfig) {
182
182
  if (currentQueueSpan) {
183
183
  currentQueueSpan.finish();
184
184
  }
185
- currentQueueStart = timestampWithMs();
185
+ currentQueueStart = timestampInSeconds();
186
186
 
187
187
  instrumentedEmberQueues.forEach(queue => {
188
188
  scheduleOnce(queue, null, () => {
189
189
  scheduleOnce(queue, null, () => {
190
190
  // Process this queue using the end of the previous queue.
191
191
  if (currentQueueStart) {
192
- const now = timestampWithMs();
192
+ const now = timestampInSeconds();
193
193
  const minQueueDuration = minimumRunloopQueueDuration ?? 5;
194
194
 
195
195
  if ((now - currentQueueStart) * 1000 >= minQueueDuration) {
@@ -210,7 +210,7 @@ function _instrumentEmberRunloop(config: EmberSentryConfig) {
210
210
  if (!stillActiveTransaction) {
211
211
  return;
212
212
  }
213
- currentQueueStart = timestampWithMs();
213
+ currentQueueStart = timestampInSeconds();
214
214
  });
215
215
  });
216
216
  });
@@ -244,7 +244,7 @@ interface RenderEntries {
244
244
  function processComponentRenderBefore(payload: Payload, beforeEntries: RenderEntries) {
245
245
  const info = {
246
246
  payload,
247
- now: timestampWithMs(),
247
+ now: timestampInSeconds(),
248
248
  };
249
249
  beforeEntries[payload.object] = info;
250
250
  }
@@ -261,7 +261,7 @@ function processComponentRenderAfter(
261
261
  return;
262
262
  }
263
263
 
264
- const now = timestampWithMs();
264
+ const now = timestampInSeconds();
265
265
  const componentRenderDuration = now - begin.now;
266
266
 
267
267
  if (componentRenderDuration * 1000 >= minComponentDuration) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/ember",
3
- "version": "7.48.0",
3
+ "version": "7.50.0",
4
4
  "description": "Official Sentry SDK for Ember.js",
5
5
  "repository": "git://github.com/getsentry/sentry-javascript.git",
6
6
  "homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/ember",
@@ -29,9 +29,9 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@embroider/macros": "^1.9.0",
32
- "@sentry/browser": "7.48.0",
33
- "@sentry/types": "7.48.0",
34
- "@sentry/utils": "7.48.0",
32
+ "@sentry/browser": "7.50.0",
33
+ "@sentry/types": "7.50.0",
34
+ "@sentry/utils": "7.50.0",
35
35
  "ember-auto-import": "^1.12.1 || ^2.4.3",
36
36
  "ember-cli-babel": "^7.26.11",
37
37
  "ember-cli-htmlbars": "^6.1.1",