-
Notifications
You must be signed in to change notification settings - Fork 4
[FEATURE] Add telemetry CAT-66 #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
2564a64 to
e1899fe
Compare
| /// <returns>The version number</returns> | ||
| public string getSdkVersion() | ||
| { | ||
| return GetType().Assembly.GetName().Version.ToString(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will return a string with four sections separated by periods. i.e. 0.0.8.0
b117dc2 to
9855d6c
Compare
9855d6c to
a7b1e35
Compare
| /// </summary> | ||
| /// <returns>A signature hash for the request authentication</returns> | ||
| private string generateSignature() | ||
| public string generateSignature() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turned to public so we can use it in the tests. In Java SDK this is also a public method.
rhiannon-eldridge-lrn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just needs some minor changes to be consistent with the existing code, otherwise looks great to me.
This PR adds telemetry to all requests made using the ASP.NET SDK.
We tried to follow how it works in the PHP SDK (relevant function here: https://github.com/Learnosity/learnosity-sdk-php/blob/master/src/LearnositySdk/Request/Init.php#L174)