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
Conversation
@@ -6,7 +6,7 @@ | |||
"type": "node", | |||
"request": "attach", | |||
"port": 9229, | |||
"preLaunchTask": "func: host start" | |||
"preLaunchTask": "func: host start --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.
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
@@ -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 comment
The 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 comment
The 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 comment
The reason will be displayed to describe this comment to others. Learn more.
In the app insights package. I don't see a bump in package.json
in this PR so I wonder what/when that changed.
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.
That's the Azure AI package, and it already accepts a measurement param.
@molant Is this good to go? |
No description provided.