Skip to content

New UI displays some extended data formatted as a single line instead of separate lines #2427

Description

@PhilipDn

For all events in our applications, we are including ASP.NET Session variables added to logged events, with code similar to this:

string sessContents = "NULL";
if (HttpContext.Current.Session != null)
{
	sessContents = "";
	foreach (string key in HttpContext.Current.Session.Keys)
	{
		sessContents += key + " = " + HttpContext.Current.Session[key] + Environment.NewLine;
	}
}
e.Event.SetProperty("SessionContents", sessContents);

In the "legacy" UI, these items are displayed in an "Extended Data" tab in the event details in a section named "SessionContents", and formatted as shown here (with each item on a separate line):

ApplicationName = ZZZZ
GL_StatusFilter_D = Active
GL_cbRA_D = -1
GL_cbOSPTeam_D = All Teams
GL_cbGroupByRA_D = False
GL_cbGroupByOSPTeam_D = False
SessionID = uhs3bmk4gvq5h4whfm1vfdlk

In the new/next UI (version 8.7.1) this same Session data is now displayed in a single line, as shown here (making it a little more difficult to read):

ApplicationName = ZZZZ GL_StatusFilter_D = Active GL_cbRA_D = -1 GL_cbOSPTeam_D = All Teams GL_cbGroupByRA_D = False GL_cbGroupByOSPTeam_D = False SessionID = uhs3bmk4gvq5h4whfm1vfdlk

Do I need to change the application code that adds the Session variables to the event data (to add a newline between each item, for example)? Or, is this display format something that can be changed in the new UI?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions