fcl-js icon indicating copy to clipboard operation
fcl-js copied to clipboard

[Metrics] Add Client and Version data to access node requests

Open bthaile opened this issue 2 years ago • 2 comments

Issue to be solved

Need to track versions of fcl being used and failure rates

Suggest A Solution

Add custom header on requests to access node. header name FLOW-CLIENTand FLOW-CLIENT-VERSION

  • library name
  • library version

example for fcl FLOW-CLIENT=FCL-JS FLOW-CLIENT-VERSION=1.01

What are you currently working on that this is blocking?

Identifying community adoption of new versions as they are released.

bthaile avatar Feb 09 '23 18:02 bthaile

Can we also allow user to add a custom header while doing this? It would be useful for AN providers to (now there is premissionless AN is out) to give out API keys for users

bluesign avatar Feb 10 '23 08:02 bluesign

@bluesign ~~The ability to add custom headers to the transport is already supported. This would take advantage of that.~~

Work was done here, but the work was incomplete.

justinbarry avatar Mar 24 '23 22:03 justinbarry