Skip to content

"Invalid Character" when using Scope names with state #636

@WolfspiritM

Description

@WolfspiritM

Please mark the type framework used:

  • ASP.NET MVC
  • ASP.NET Web API (OWIN)
  • ASP.NET Core
  • WPF
  • WinForms
  • Xamarin
  • Other:

Please mark the type of the runtime used:

  • .NET Framework
  • Mono
  • .NET Core
  • Version:

Please mark the NuGet packages used:

  • Sentry
  • Sentry.Serilog
  • Sentry.NLog
  • Sentry.Log4Net
  • Sentry.Extensions.Logging
  • Sentry.AspNetCore
  • Version: 2.1.8

When using the AspNetCore ILogger like this:

using (logger.BeginScope("HTTP {HttpMethod} {Uri}", "123", "1234")){
	logger.LogCritical("Test");
}

This creates a scope called "HTTP 123 1234" and additional tags "HttpMethod: 123" and "Uri: 1234".
Sentry successfully gets the tags but the scope results in an error in the sentry frontend like this:
image

The tags json will contain:

{"value":"HTTP {HttpMethod} {Uri}","key":null}

I think Sentry should be able to use "HTTP 123 1234" as value and probably have "scope" as a tag key (Are arrays supported as tag keys?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureNew feature or requestQuestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions