microsoft / applicationinsights-vscode Goto Github PK
View Code? Open in Web Editor NEWVisual Studio Code extension for Azure Application Insights
License: Other
Visual Studio Code extension for Azure Application Insights
License: Other
Hello,
Extension recognizes well some simple routes and shows Code Lens for it, but not other. In my case it recognizes only following:
router.get('/refund/:transactId/:amount/:currency', (req, res, next) => {
but none of with destructed params
// destruction
router.post('/', async ({ body: { email } }, res) => {
...
router.get('/logo/:flightOrAirlineCode', ({ params: { flightOrAirlineCode } }, res) => {
I'm working on sample Azure Functions local project generated by Azure Functions VSCode extension. It generates host.json file for project's configuration. However, adding Application Insights to this project using extension will inject Javascript code into JSON file, making it invalid syntax
Original host.json
{
"version": "2.0"
}
After enabling Application Insights
// Enable telemetry collection with Application Insights
var ai = require('applicationinsights');
ai.setup(process.env.APPLICATIONINSIGHTSKEY || '<APPLICATION INSIGHTS KEY HERE>').start();{
"version": "2.0"
}
Got this notification when I clicked on a codelens:
'VisualStudioOnlineApplicationInsights.application-insights' uses the 'vscode.previewHtml' command which is deprecated and will be removed soon. Please file an issue against this extension to update to use VS Code's webview API.
Version: 1.44.2
Commit: ff915844119ce9485abfe8aa9076ec76b5300ddd
Date: 2020-04-16T17:07:18.473Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 18.7.0
Plugin version 0.4.2
When I click "Add to Project" then select "Add an Account", I get a popup login view. I can't paste my randomly generated, 100char password into the login prompt, rendering this plugin effectively useless
You may see this issue when you try to sign in using an AAD account, esp. on a Mac. Sign in fails and you see the page pop up repeatedly in spite of entering the right credentials.
Workaround: select the 'Keep me signed in' checkbox and sign in.
The release notes contain the following entry (for Version 0.3.1):
Switched to using esprima-fb in order to support es7 syntax
Esprima-fb is Facebook-fork of Esprima and Facebook has abandoned it. Please consider not using it.
The upstream Esprima has already baked in support for ES7 (officially known as ES2016). It will continue to support future ECMA-262 standards and it is actively maintained. For more information: http://esprima.org/.
Hello,
this extension for visual studio code works with Hapi.js backend or works only with Express?
Thanks
Currently when using the extension, in my AI dashboard, I see all events as if they were coming from a single user's single session. I've googled around and it seems like the method in the issue title is the way to fix this, but it doesn't seem to be exposed. Is there an alternative, or could it be exposed, please?
When I do a 'Application Insights: Add To Project', I get the error message 'Sorry this project is not supported'.
Steps:
VS Code version: 1.25.1
OS: Windows 10
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.