Skip to content

Tracing not displayed even though it is there #2824

@BillBaird

Description

@BillBaird

I have a graphql server that supports Apollo Tracing. For years I have used Playground to display the tracing information.

I'm now trying to do this in Altair. I'm trying this in both the app (version 8.2.2) and in chrome and getting the same error message. I've configured the tracing pluging to be npm:altair-graphql-plugin-tracing.

When I execute my query the Altair tracing window in the lower right says

This GraphQL server doesn’t support tracing. See the following page for instructions:
https://github.com/apollographql/apollo-tracing

Or check that you are using at least Altair v4.0.6

The query returns data, and the extensions for tracing are there ... below is the start of what is returned:

  },
  "extensions": {
    "tracing": {
      "version": 1,
      "startTime": "2025-05-22T16:29:43.240619Z",
      "endTime": "2025-05-22T16:29:43.2456423Z",
      "duration": 5023300,
      "parsing": {
        "startOffset": 500,
        "duration": 86000
      },
      "validation": {
        "startOffset": 91399,
        "duration": 931199
      },
      "execution": {
        "resolvers": [
          {
            "path": [
              "componentsByType"
            ],
            "parentType": "LedgerQueries",
            "fieldName": "componentsByType",
            "returnType": "_IComponentConnection",
            "startOffset": 1053100,
            "duration": 1892700
          },
          {
            "path": [
              "ms",
              "Component_ByType"
            ],
            "parentType": null,
            "fieldName": null,
            "returnType": null,
            "startOffset": 1128900,
            "duration": 1757799
          },

As I indicated, Playground displays the tracing graph nicely, but even though I believe I've configured Altair correctly, it does not. When I compare the tracing results to Apollo's doc, things appear to be correct.

Am I doing something incorrectly, is there an issue with the tracing information the server is returning, or could it be an issue with the plugin? I'm trying to switch from Playground to Altair and this the one thing that is getting in the way.

Thanks in advance for any insights.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions