Skip to content
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

Merged
merged 1 commit into from Jun 22, 2020
Merged

Conversation

utsavized
Copy link
Contributor

No description provided.

@utsavized utsavized requested review from molant and sarvaje June 16, 2020 19:36
@utsavized utsavized self-assigned this Jun 16, 2020
@utsavized
Copy link
Contributor Author

Bump. @sarvaje @molant

@@ -6,7 +6,7 @@
"type": "node",
"request": "attach",
"port": 9229,
"preLaunchTask": "func: host start"
"preLaunchTask": "func: host start --cors *"
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

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?

Copy link
Contributor Author

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({
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@molant Where?

Copy link
Member

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.

Copy link
Contributor Author

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.

@utsavized
Copy link
Contributor Author

@molant Is this good to go?

@molant molant merged commit 3bc074d into master Jun 22, 2020
@molant molant added this to Done in Backlog + current sprint via automation Jun 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants