Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
542 B
Text
23 lines
542 B
Text
import { diag, DiagLogLevel } from '@opentelemetry/api';
|
|
import { debug } from '@sentry/core';
|
|
|
|
/**
|
|
* Setup the OTEL logger to use our own debug logger.
|
|
*/
|
|
function setupOpenTelemetryLogger() {
|
|
// Disable diag, to ensure this works even if called multiple times
|
|
diag.disable();
|
|
diag.setLogger(
|
|
{
|
|
error: debug.error,
|
|
warn: debug.warn,
|
|
info: debug.log,
|
|
debug: debug.log,
|
|
verbose: debug.log,
|
|
},
|
|
DiagLogLevel.DEBUG,
|
|
);
|
|
}
|
|
|
|
export { setupOpenTelemetryLogger };
|
|
//# sourceMappingURL=logger.js.map
|