Skip to content

dotnet-trace does not escape values which breaks json output #1370

@Hoffs

Description

@Hoffs

Hi,

I was doing some tracing using an application that uses some XslCompiledTransform templates and it seems that those break the tracing output as their class names have quotations that are not escaped. Here is a part of it:

{"name": "dynamicClass.<xsl:template name="outputField">(pMT: 00007FF7AFE59DC8,class System.String,pMT: 00007FF7AC4DEE18<pMT: 00007FF7AFE5A8A8>,float64)", "category": "System.Xml.Xsl.CompiledQuery", "parent": 450}

The name=" obviously breaks the json format and makes the entire tracing output invalid.

dotnet-trace version: 3.1.120604+97218bff6a14e60360862529b09b687789cc1279
dotnet version that was used when collecting trace: 3.1.106
collector type used: chromium

Metadata

Metadata

Assignees

No one assigned

    Labels

    dotnet-tracegood first issueGood for newcomersnettrace conversionrelated to converting nettrace to other file formats, e.g., chromium eventtrace or speedscope

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions