square / connect-api-examples

Code samples demonstrating the functionality of the Square Connect API
https://developer.squareup.com/docs/sample-apps
389 stars 792 forks source link

Add user agent detail to client config for v2 sample apps #349

Closed emmac3 closed 1 year ago

emmac3 commented 1 year ago

Screen Shot 2022-09-26 at 3 09 33 PM As of the January SDK release, all of our Square Connect SDKs now support a custom telemetry string userAgentDetail. We want to populate this field and use this new functionality to start capturing usage metrics on each sample app. In order to do that we need to add code in each sample app to set this usage string to the name of that sample app.

azlee commented 1 year ago

Can you add the user agent detail to the graphql app as well - https://github.com/square/connect-api-examples/blob/master/connect-examples/v2/graphql-sample-app/bin/script/seed-data.js#L31-L34