Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/core/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ import { safeUnref } from './utils/timer';
import { convertSpanJsonToTransactionEvent, convertTransactionEventToSpanJson } from './utils/transactionEvent';
import { maybeWarnAboutIgnoredTransactionOptions } from './utils/warnAboutIgnoredTransactionOptions';
import { resolveDataCollectionOptions } from './utils/data-collection/resolveDataCollectionOptions';
import { ATTRIBUTE_METADATA } from '@sentry/conventions';

const ALREADY_SEEN_ERROR = "Not capturing exception because it's already been captured.";
const MISSING_RELEASE_FOR_SESSION_ERROR = 'Discarded session because of missing or non-string release';
Expand Down Expand Up @@ -256,6 +257,11 @@ export abstract class Client<O extends ClientOptions = ClientOptions> {
DEBUG_BUILD && debug.warn('No DSN provided, client will not send events.');
}

debug.log(`I have ${Object.keys(ATTRIBUTE_METADATA).length} attributes I can assign`);
Object.keys(ATTRIBUTE_METADATA).forEach(attribute => {
debug.log(`Attribute: ${attribute}`);
});

const { beforeSendSpan, traceLifecycle } = this._options;
// A `beforeSendSpan` callback is only invoked for the span format matching the trace lifecycle,
// so a mismatch means it is silently never called.
Expand Down
Loading