404 when trying to send traces to apollo studio

Hi

I’m trying to send traces to apollo studio from rails server, and I’m using this gem: GitHub - EnjoyTech/apollo-studio-tracing-ruby: A Ruby implementation of Apollo Studio tracing. Everything is setup how it should be. But I’m not sure if it’s the plugin or something else. But this is how my trace in json looks like. I’m obviously obfuscating some of the info (schema tag).

{
  "header": {
    "hostname": "a28180575209",
    "agentVersion": "apollo-studio-tracing 1.1.0",
    "runtimeVersion": "ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [aarch64-linux-musl]",
    "uname": "Linux a28180575209 5.15.49-linuxkit #1 SMP PREEMPT Tue Sep 13 07:51:32 UTC 2022 aarch64 Linux\n",
    "schemaTag": "****@dev"
  },
  "tracesPerQuery": {
    "# getCurrentUser\nquery getCurrentUser {\n    getCurrentUser {\n      id\n    }\n  }": {
      "trace": [
        {
          "startTime": "2022-11-30T16:05:07.964597754Z",
          "endTime": "2022-11-30T16:05:07.967307462Z",
          "durationNs": "2708458",
          "root": {
            "child": [
              {
                "type": "User",
                "parentType": "Query",
                "startTime": "2506833",
                "endTime": "2562250",
                "responseName": "getCurrentUser"
              }
            ]
          },
          "clientName": "test",
          "clientVersion": "1.0"
        }
      ]
    }
  }
}

This is the url I’m sending the info to:
https://usage-reporting.api.apollographql.com/api/ingress/traces

I’m going to reply and follow along over on your github issue:

1 Like