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

[Bug] Unable to parse traces data with tags. #894

Open
biuboombiuboom opened this issue Jun 25, 2024 · 1 comment
Open

[Bug] Unable to parse traces data with tags. #894

biuboombiuboom opened this issue Jun 25, 2024 · 1 comment

Comments

@biuboombiuboom
Copy link

Describe the bug

trace data include tags parse error
image

Steps to reproduce

Provide steps to reproduce the issue.

Note: bugs will be fixed only if enough information provided to reproduce the issue

Sample Data

[ { "serviceName": "s1", "operationName": "get", "duration": 1, "startTime": 17000000, "spanID": "s1", "parentSpanID": "ps1", "traceID": : "t1", "tags": [ { "key": "k", "value": "v" } ] } ]

Screenshots

If applicable, add screenshots to help explain your problem.

Version Details:

  • Grafana version :9.5.16
  • Plugin version :2.8

Additional context

Add any other context about the problem here.

@biuboombiuboom
Copy link
Author

biuboombiuboom commented Jun 25, 2024

trace span.tags excpet array ,but parsed string

JSONParser.constructTableData

if (['string', 'number', 'boolean'].includes(typeof value)) {
          row.push(value);
        } else if (value && typeof value.getMonth === 'function') {
          row.push(value);
        }else {
          row.push(JSON.stringify(value));
        }

@biuboombiuboom biuboombiuboom changed the title [Bug] Title [Bug] Unable to parse traces data with tags. Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant