diff --git a/src/components/agentSetupCallout/index.tsx b/src/components/agentSetupCallout/index.tsx index 0c6145be52cab7..0b0129ef80e50c 100644 --- a/src/components/agentSetupCallout/index.tsx +++ b/src/components/agentSetupCallout/index.tsx @@ -41,7 +41,10 @@ export function AgentSetupCallout({skill, platformName}: Props) { DocMetrics.copyAIPrompt(window.location.pathname, skill, true); setTimeout(() => setCopied(false), 1500); } catch (error) { - Sentry.captureException(error); + Sentry.logger.warn('clipboard.writeText failed', { + error: (error as Error)?.message, + errorName: (error as Error)?.name, + }); DocMetrics.copyAIPrompt(window.location.pathname, skill, false); setCopied(false); } diff --git a/src/components/copyPromptButton/index.tsx b/src/components/copyPromptButton/index.tsx index ab9775a6319167..97543dc6cd6ea6 100644 --- a/src/components/copyPromptButton/index.tsx +++ b/src/components/copyPromptButton/index.tsx @@ -75,7 +75,10 @@ export function CopyPromptButton({skill, platformName}: Props) { DocMetrics.copyAIPrompt(window.location.pathname, skill, true, 'inline_link'); setTimeout(() => setCopied(false), 1500); } catch (error) { - Sentry.captureException(error); + Sentry.logger.warn('clipboard.writeText failed', { + error: (error as Error)?.message, + errorName: (error as Error)?.name, + }); DocMetrics.copyAIPrompt(window.location.pathname, skill, false, 'inline_link'); setCopied(false); }