Skip to content

JSON file exporter doesn't handle unicode properly #45

@Nancy-Chauhan

Description

@Nancy-Chauhan

Bug Report\n\nWhen span attributes contain unicode characters (e.g., CJK characters, emoji), the JSON file exporter writes them as escaped sequences instead of actual unicode.\n\npython\nspan = Span(\n name="process_request",\n service_name="api",\n attributes={"user.name": "田中太郎", "status": "完了"},\n)\nexporter.export([span])\n# File contains: {"user.name": "\u7530\u4e2d\u592a\u90ce"}\n# Should contain: {"user.name": "田中太郎"}\n\n\nThe json.dump call needs ensure_ascii=False.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingexporterRelated to exporters

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions