Skip to content

Commit 8af8fd8

Browse files
committed
fix(apm): Spelling mistakes
1 parent 302a881 commit 8af8fd8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/apm/src/integrations/tracing.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export interface TracingOptions {
8080
/**
8181
* Flag Transactions where tabs moved to background with "cancelled". Browser background tab timing is
8282
* not suited towards doing precise measurements of operations. Background transaction can mess up your
83-
* statistics in non deterministic ways that's why we by default recommend leaving this opition enabled.
83+
* statistics in non deterministic ways that's why we by default recommend leaving this option enabled.
8484
*
8585
* Default: true
8686
*/
@@ -194,7 +194,7 @@ export class Tracing implements Integration {
194194
traceXHR: true,
195195
tracingOrigins: defaultTracingOrigins,
196196
};
197-
// NOTE: Logger doesn't work in contructors, as it's initialized after integrations instances
197+
// NOTE: Logger doesn't work in constructors, as it's initialized after integrations instances
198198
if (!_options || !Array.isArray(_options.tracingOrigins) || _options.tracingOrigins.length === 0) {
199199
this._emitOptionsWarning = true;
200200
}
@@ -481,7 +481,7 @@ export class Tracing implements Integration {
481481
Tracing._log('[Tracing] cancelling span since transaction ended early', JSON.stringify(span, undefined, 2));
482482
}
483483

484-
// We remove all spans that happend after the end of the transaction
484+
// We remove all spans that occurred after the end of the transaction
485485
// This is here to prevent super long transactions and timing issues
486486
const keepSpan = span.startTimestamp < endTimestamp;
487487
if (!keepSpan) {
@@ -764,7 +764,7 @@ export class Tracing implements Integration {
764764
}
765765

766766
/**
767-
* Starts tracking for a specifc activity
767+
* Starts tracking for a specific activity
768768
*
769769
* @param name Name of the activity, can be any string (Only used internally to identify the activity)
770770
* @param spanContext If provided a Span with the SpanContext will be created.
@@ -801,7 +801,7 @@ export class Tracing implements Integration {
801801
}
802802

803803
Tracing._log(`[Tracing] pushActivity: ${name}#${Tracing._currentIndex}`);
804-
Tracing._log('[Tracing] activies count', Object.keys(Tracing._activities).length);
804+
Tracing._log('[Tracing] activities count', Object.keys(Tracing._activities).length);
805805
if (options && typeof options.autoPopAfter === 'number') {
806806
Tracing._log(`[Tracing] auto pop of: ${name}#${Tracing._currentIndex} in ${options.autoPopAfter}ms`);
807807
const index = Tracing._currentIndex;
@@ -852,13 +852,13 @@ export class Tracing implements Integration {
852852
}
853853

854854
const count = Object.keys(Tracing._activities).length;
855-
Tracing._log('[Tracing] activies count', count);
855+
Tracing._log('[Tracing] activities count', count);
856856

857857
if (count === 0 && Tracing._activeTransaction) {
858858
const timeout = Tracing.options && Tracing.options.idleTimeout;
859859
Tracing._log(`[Tracing] Flushing Transaction in ${timeout}ms`);
860860
// We need to add the timeout here to have the real endtimestamp of the transaction
861-
// Remeber timestampWithMs is in seconds, timeout is in ms
861+
// Remember timestampWithMs is in seconds, timeout is in ms
862862
const end = timestampWithMs() + timeout / 1000;
863863
setTimeout(() => {
864864
if (Object.keys(Tracing._activities).length === 0 && Tracing._activeTransaction) {

0 commit comments

Comments
 (0)