Skip to content

Commit 5e0b5b8

Browse files
committed
fix(js): Remove emoji characters causing atob encoding error
Remove ✨ and ❌ emoji characters from code examples that were causing 'InvalidCharacterError: Failed to execute atob' errors in docs. The atob function only supports Latin1 (ISO-8859-1) characters, and emojis are outside that range, causing encoding issues during page rendering.
1 parent ba59655 commit 5e0b5b8

File tree

1 file changed

+2
-2
lines changed
  • docs/platforms/javascript/common/tracing/span-metrics

1 file changed

+2
-2
lines changed

docs/platforms/javascript/common/tracing/span-metrics/examples.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Sentry.startSpan(
5151
const data: { orderId: string; paymentProvider: string } = await response.json()
5252
span.setAttribute('order.id', data.orderId)
5353
span.setAttribute('payment.provider', data.paymentProvider)
54-
Sentry.logger.info(Sentry.logger.fmt`Order ${data.orderId} confirmed via ${data.paymentProvider}`)
54+
Sentry.logger.info(Sentry.logger.fmt`Order ${data.orderId} confirmed via ${data.paymentProvider}`)
5555

5656
// Show order confirmation
5757
setOrderConfirmation({
@@ -65,7 +65,7 @@ Sentry.startSpan(
6565
span.setStatus({ code: 2, message: 'internal_error' })
6666
const errorMessage = err instanceof Error ? err.message : 'Checkout failed'
6767
setCheckoutError(errorMessage)
68-
Sentry.logger.error(Sentry.logger.fmt`${errorMessage}`)
68+
Sentry.logger.error(Sentry.logger.fmt`${errorMessage}`)
6969
} finally {
7070
setIsCheckingOut(false)
7171
}

0 commit comments

Comments
 (0)