router icon indicating copy to clipboard operation
router copied to clipboard

getting client awareness information from other sources

Open Geal opened this issue 1 year ago • 1 comments

Right now, client awareness information is extracted from headers, but we might want to get it from other sources, like JWT claims

Geal avatar Feb 20 '24 15:02 Geal

This is not yet implemented, but right now it can be worked around with rhai:

fn supergraph_service(service) {
  let request_callback = |request| {
    request.context["apollo_telemetry::client_name"] = "my-client-name";
        request.context["apollo_telemetry::client_version"] = "1.0";

  };
  
  service.map_request(request_callback);
}

Geal avatar Mar 05 '24 13:03 Geal