Skip to content
Closed
Show file tree
Hide file tree
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
4 changes: 3 additions & 1 deletion packages/nuxt/src/client/sdk.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getDefaultIntegrations as getBrowserDefaultIntegrations, init as initBrowser } from '@sentry/browser';
import { applySdkMetadata } from '@sentry/core';
import { applySdkMetadata, setTag } from '@sentry/core';
import type { Client } from '@sentry/types';
import type { SentryNuxtOptions } from '../common/types';

Expand All @@ -17,5 +17,7 @@ export function init(options: SentryNuxtOptions): Client | undefined {

applySdkMetadata(sentryOptions, 'nuxt', ['nuxt', 'vue']);

setTag('runtime', 'browser');

return initBrowser(sentryOptions);
}
4 changes: 3 additions & 1 deletion packages/nuxt/src/server/sdk.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { applySdkMetadata } from '@sentry/core';
import { applySdkMetadata, setTag } from '@sentry/core';
import { init as initNode } from '@sentry/node';
import type { Client } from '@sentry/types';
import type { SentryNuxtOptions } from '../common/types';
Expand All @@ -15,5 +15,7 @@ export function init(options: SentryNuxtOptions): Client | undefined {

applySdkMetadata(sentryOptions, 'nuxt', ['nuxt', 'node']);

setTag('runtime', 'node');

return initNode(sentryOptions);
}
Loading