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

context.log.metric is always undefined #16609

Closed
dixitsuneel opened this issue Oct 10, 2018 — with docs.microsoft.com · 3 comments
Closed

context.log.metric is always undefined #16609

dixitsuneel opened this issue Oct 10, 2018 — with docs.microsoft.com · 3 comments

Comments

Copy link
Contributor

In the dev environment, when I look at the context.log.metric it comes out to be undefined.

Can you guys please correct the documentation and provide the correct way to track the metric.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@mikeurnun
Copy link
Contributor

Hi @dixitsuneel Thank you for reporting this issue! We will investigate and make any necessary changes.

@dixitsuneel
Copy link
Contributor Author

@mike-urnun-msft Is there any update on this?

@mikeurnun
Copy link
Contributor

mikeurnun commented Jan 3, 2019

Hi @dixitsuneel

Apologies for delay in response. This section of the documentation that discusses the use of context.log.metric method seems to have been published in an error. Although, the Functions team is working on this feature and you may track & inquire about it here: Azure/azure-functions-nodejs-worker#147

In the meantime, please explore using the Application Insights SDK instead for your NodeJS Functions runtime as explained here: https://docs.microsoft.com/en-us/azure/azure-functions/functions-monitoring#custom-telemetry-in-javascript-functions

Lastly, we are proceeding to assign this issue to the author to review further and take the right course of action for the said section of this documentation. If there are further questions regarding this matter, please don't hesitate to reach out and we will gladly continue the discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants