DataDog/browser-sdk

๐Ÿ› Warning message when setting Japanese tags

Closed this issue ยท 3 comments

Describe the bug

Browser Log Collection(NPM)

When setting Japanese service name, logs can be sent to Datadog, but SDK returns warning.

import { datadogLogs } from '@datadog/browser-logs'

datadogLogs.init({
  clientToken: 'xxxxxx',
  site: 'datadoghq.com',
  forwardErrorsToLogs: true,
  sessionSampleRate: 100,
  service: 'ใฆใ™ใจ',
})

โ†“ browser console
Screenshot 2024-08-22 at 9 35 19

โ†“ log
Screenshot 2024-08-22 at 10 20 31

`${key} value doesn't meet tag requirements and will be sanitized. ${MORE_DETAILS} ${DOCS_ORIGIN}/getting_started/tagging/#defining-tags`

It seems Japanese tags are supported.
https://docs.datadoghq.com/getting_started/tagging/#define-tags

2.Tags can be up to 200 characters long and support Unicode letters (which includes most character sets, including languages such as Japanese).

To Reproduce

  • set Japanese tags

Expected behavior
SDK doesn't return the warning message just because the tag is Japanese.

Hello @taromn,
Thanks for reporting the issue! I'll let you know when it is fixed.

Hello @taromn,

We released a fix in the browser SDK v5.26.0.

thank you!