/**
 * Next.js Instrumentation
 * =======================
 * Server-side 初始化 (Sentry + OpenTelemetry 並行)
 */

export async function register() {
  if (process.env.NEXT_RUNTIME === 'nodejs') {
    // Server-side Sentry 初始化
    await import('../sentry.server.config')
  }

  if (process.env.NEXT_RUNTIME === 'edge') {
    // Edge runtime Sentry 初始化
    await import('../sentry.edge.config')
  }
}
