clickhouse-datasource icon indicating copy to clipboard operation
clickhouse-datasource copied to clipboard

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

Open anglinb opened this issue 11 months ago • 1 comments

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 avatar Dec 04 '24 04:12 anglinb

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

SpencerTorres avatar Jan 07 '25 22:01 SpencerTorres

@anglinb This should have been resolved in v4.9.0, so I'm going to close this as resolved. If this didn't resolve your issue, please feel free to re-open!

adamyeats avatar Jul 22 '25 22:07 adamyeats