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

When viewing traces using the GUI Query Builder, the query does not retrieve Status #1075

Open
anglinb opened this issue Dec 4, 2024 · 1 comment
Labels

Comments

@anglinb
Copy link

anglinb commented Dec 4, 2024

What happened:

When using the automatic query builder for Query Type: "Traces", the built query does not contain the status.

Here's an example trace output to the console that shows it containing the status.

{
  resource: {
    attributes: {
      'service.name': 'example',
      'telemetry.sdk.language': 'nodejs',
      'telemetry.sdk.name': '@effect/opentelemetry',
      'telemetry.sdk.version': '1.28.0'
    }
  },
  instrumentationScope: { name: 'example', version: undefined, schemaUrl: undefined },
  traceId: '0495ad42b79877af1d42375c269f3718',
  parentId: undefined,
  traceState: undefined,
  name: 'run/program',
  id: 'c115be1764ebdce1',
  kind: 0,
  timestamp: 1733283145158697.5,
  duration: 534187.292,
  attributes: {
    'code.stacktrace': 'at <anonymous> (/Users/brian/superwall/effect-otel-testing/src/run.ts:24:16)'
  },
  status: { code: 2, message: 'Crash!' },
  events: [
    {
      name: 'exception',
      attributes: {
        'exception.type': 'Error',
        'exception.message': 'Crash!',
        'exception.stacktrace': 'Error: Crash!'
      },
      time: [ 1733283145, 692884875 ],
      droppedAttributesCount: 0
    }
  ],
  links: []
}

What you expected to happen:

I would have expected the query to contain status as that is needed for the UI to show the status with the red X.

How to reproduce it (as minimally and precisely as possible):

Run a traces query with a trace with an error status when using the default settings

Screenshots

Image

Image
Anything else we need to know?:

Environment:

  • Grafana version: 11.3.0
  • Plugin version: 4.5.1
  • OS Grafana is installed on: MacOS
  • User OS & Browser: MacOS, Chrome
  • Others:
@anglinb anglinb added datasource/ClickHouse type/bug Something isn't working labels Dec 4, 2024
@SpencerTorres SpencerTorres added enhancement New feature or request and removed type/bug Something isn't working labels Jan 7, 2025
@SpencerTorres
Copy link
Collaborator

Should be fixed in #1043, but the PR needs changes. I might need to make the changes myself. Thanks for submitting this info!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants