Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logs: Lines with long words do not break properly #61707

Merged
merged 2 commits into from Jan 19, 2023

Conversation

svennergr
Copy link
Contributor

What is this feature?

Log lines containing large "words" do not break properly. Adding overflow-wrap: anywhere ensures even those words are broken correctly.

Special notes for your reviewer:

  1. Add a TestData Datasource
  2. Go to Explore
  3. Select your TestData datasource
  4. Select Raw Frames
  5. Use the following data as a frame:
[
    {
      "schema": {
        "refId": "A",
        "meta": {
          "custom": {
            "frameType": "LabeledTimeValues",
            "lokiQueryStatKey": "Summary: total bytes processed"
          },
          "stats": [
            
          ],
          "executedQueryString": "Expr: {\"?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,\"",
          "preferredVisualisationType": "logs",
          "limit": 1,
          "searchWords": [
          ]
        },
        "fields": [
          {
            "name": "labels",
            "type": "other",
            "typeInfo": {
              "frame": "json.RawMessage"
            },
            "config": {}
          },
          {
            "name": "Time",
            "type": "time",
            "typeInfo": {
              "frame": "time.Time"
            },
            "config": {}
          },
          {
            "name": "Line",
            "type": "string",
            "typeInfo": {
              "frame": "string"
            },
            "config": {}
          }
        ]
      },
      "data": {
        "values": [
          [
            {
              "app": "grafana"
            }
          ],
          [
            1674060209859
          ],
          [
            "test (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) "
          ]
        ]
      }
    }
  ]

@svennergr svennergr merged commit fd70f60 into main Jan 19, 2023
@svennergr svennergr deleted the svennergr/fix-loki-log-escaping branch January 19, 2023 11:56
grafanabot pushed a commit that referenced this pull request Jan 19, 2023
really break anywhere

(cherry picked from commit fd70f60)
svennergr added a commit that referenced this pull request Jan 19, 2023
Logs: Lines with long words do not break properly (#61707)

really break anywhere

(cherry picked from commit fd70f60)

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
GuYounes pushed a commit to paul-wurth/BIXpert that referenced this pull request Feb 8, 2023
…1756)

Logs: Lines with long words do not break properly (grafana#61707)

really break anywhere

(cherry picked from commit fd70f60)

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants