We use GraphQL Federation 2.0 and have a Self Hosted Supergraph-Subgraph setup.
For observability purposes, we would like to format the logs of Router.
We have tried with adding post processor RHAI script but no success.
For more advanced configuration you can create also create events which can be hooked into the predefined layers for Router Core: Events - Apollo GraphQL Docs