Skip to content
Merged
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
14 changes: 14 additions & 0 deletions scripts/genPlatformProductInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,19 @@ const FEATURES: Record<string, string> = {
METRICS: 'metrics',
};

// Overrides for (platform, product) combinations that the sentry-docs
// frontmatter declares as supported, but which the SDK owners have asked us
// not to surface in new-project onboarding (typically because the feature is
// still alpha or has narrower real-world scope than the frontmatter implies).
//
// Keep this list small and document the rationale per-entry so future
// regenerations don't quietly drop or restore overrides.
const PRODUCT_EXCLUSIONS: Record<string, Set<string>> = {
// Flutter profiling is still alpha and iOS/macOS-only as of 2026-05.
// Confirmed by Chris Aigner (Flutter SDK) in #team-value-discovery.
flutter: new Set(['PROFILING']),
};

// Sentry platform-ids whose docs canonical doesn't fall out of the link path.
// Most platforms map cleanly via /platforms/<lang>/(guides|integrations)/<guide>/.
const CANONICAL_OVERRIDES: Record<string, {lang: string; guide?: string}> = {
Expand Down Expand Up @@ -341,6 +354,7 @@ function deriveProducts(

if (!supported) continue;
if (product === 'METRICS' && !withMetricsOnboarding.has(platform.id)) continue;
if (PRODUCT_EXCLUSIONS[platform.id]?.has(product)) continue;

products.push(product);
}
Expand Down
1 change: 0 additions & 1 deletion static/app/data/platformProductInfo.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export const PLATFORM_PRODUCT_INFO: Partial<
ProductSolution.LOGS,
ProductSolution.SESSION_REPLAY,
ProductSolution.PERFORMANCE_MONITORING,
ProductSolution.PROFILING,
ProductSolution.METRICS,
],
'javascript-nextjs': [
Expand Down
Loading