When I enabling the debug
on Sentrylnit
, it logs the each transaction start event on console, but not the transaction finish event.
How can I enable output transaction finishes in logger too?
Here is example of code:
Sentry.init({
dsn: undefined,
debug: true,
tracesSampleRate: 1.0,
});
console.log('transaction starting');
const transaction = Sentry.startTransaction({
op: "test",
name: "My First Test Transaction",
});
console.log('transaction started');
try {
console.log('transaction in progress');
} catch (e) {
console.log('transaction exception');
Sentry.captureException(e);
} finally {
console.log('transaction finishing');
transaction.finish();
console.log('transaction finished');
}
And here is output:
Sentry Logger [Log]: Integration installed: InboundFilters
Sentry Logger [Log]: Integration installed: FunctionToString
Sentry Logger [Log]: Integration installed: Console
Sentry Logger [Log]: Integration installed: Http
Sentry Logger [Log]: Integration installed: OnUncaughtException
Sentry Logger [Log]: Integration installed: OnUnhandledRejection
Sentry Logger [Log]: Integration installed: LinkedErrors
transaction starting
Sentry Logger [Log]: [Tracing] starting test transaction - My First Test Transaction
transaction started
transaction in progress
transaction finishing
transaction finished
The question is how to show the “finishing test transaction” log entry after transaction finishing
console output line?