flow-cli icon indicating copy to clipboard operation
flow-cli copied to clipboard

Create custom header for requests to access-node

Open bthaile opened this issue 2 years ago • 2 comments

Issue to be solved Need to track versions of flow-cli being used and failure rates

Suggest A Solution Add custom header on requests to access node. header name FLOW-CLIENT and FLOW-CLIENT-VERSION

  • library name
  • library version

example for flow-cli FLOW-CLIENT=FLOW-CLI FLOW-CLIENT-VERSION=0.41.0

  • [ ] Support GRPC as well.

bthaile avatar Feb 09 '23 18:02 bthaile

Are these metrics supported on the AN?

devbugging avatar Feb 10 '23 10:02 devbugging

Also, flow CLI uses Go SDK to access AN. We could add an option to add the header but then also that would only work on HTTP. I need to see the AN implementation first to do any action here.

devbugging avatar Feb 10 '23 10:02 devbugging