router
router copied to clipboard
getting client awareness information from other sources
Right now, client awareness information is extracted from headers, but we might want to get it from other sources, like JWT claims
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);
}