-
Notifications
You must be signed in to change notification settings - Fork 2
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
Update telemetry endpoint to match data contract #190
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,10 +69,12 @@ export const trackEvent = async (name: string, properties: any) => { | |
* @param name - Event name. | ||
* @param properties - Properties to track. | ||
*/ | ||
export const addToAppInsights = (name: string, properties: any = {}) => { | ||
export const addToAppInsights = (name: string, properties: any = {}, measurements: any = {}, time: Date) => { | ||
appInsightsClient.trackEvent({ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Has the signature been updated? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @molant Where? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In the app insights package. I don't see a bump in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's the Azure AI package, and it already accepts a measurement param. |
||
measurements, | ||
name, | ||
properties | ||
properties, | ||
time | ||
}); | ||
}; | ||
|
||
|
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.
Why do we need now
--cors
?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 is just a debugging task, I found that I was always adding this to debug, so added it here.
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.
And what does
--cors *
do?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.
So by default, it's set to block CORS calls, so if I am testing API locally from webhint.io (from a different localhost port), then the calls will get rejected. This will allow that so I can test locally or from webhint.io or postman