azure-application-insights

How can we display database query in azure application insights

不羁的心 提交于 2020-07-16 09:41:24
问题 Our application is using azure application insights. What I read is that, using application insights end to end tracking, we can even get the query which gets executed at database and how much time that query took. But as shown in the screenshot, azure app insights shows me that there are 3 calls made to database but not the actual query that was executed against the database in those calls. What I need to know is that what i need to do inorder to get the query that was executed against the

Use latest version of Application Insight with .net core API

此生再无相见时 提交于 2020-06-17 14:42:30
问题 I have an existing API project in .net core 3.0 and also using exception middleware to log the exception. Now there is an requirement that we need to implement application insight in our API. I go through many links, but getting that some methods are already obsolete for newer version like app.UseApplicationInsightsExceptionTelemetry() and UseApplicationInsightsRequestTelemetry . Even I tried to use TelemetryClient inside the catch block of middleware, but again it is obsolete already. So

client_Browser field is always empty in App Insights

生来就可爱ヽ(ⅴ<●) 提交于 2020-06-17 01:52:24
问题 For all requests in App Insights the property client_Browser is empty for some reason. How can I make App insights populate client_Browser column? 回答1: This feature(client_os, client_browser are populated in app insights) has been deprecated for a long time, see the issue here. As of now, client_Browser is only populated in the pageViews telemetry , but not in request telemetry . Here is the screenshot of pageViews telemetry : If you just want to query the requests based on which browser, you

client_Browser field is always empty in App Insights

五迷三道 提交于 2020-06-17 01:48:13
问题 For all requests in App Insights the property client_Browser is empty for some reason. How can I make App insights populate client_Browser column? 回答1: This feature(client_os, client_browser are populated in app insights) has been deprecated for a long time, see the issue here. As of now, client_Browser is only populated in the pageViews telemetry , but not in request telemetry . Here is the screenshot of pageViews telemetry : If you just want to query the requests based on which browser, you

Programmatically read Azure App Insights logs without a client secret?

北战南征 提交于 2020-06-16 17:31:49
问题 I have a C# application that writes traces and exceptions to Azure Application Insights using Microsoft.ApplicationInsights and the TelemetryClient class. I want to programmatically search the AI trace and exception logs using C#, as opposed to having to use Kusto queries. Every article I've read on how to do this seems to require that I know the Client Secret for the resource. But I am unable to obtain this, as I don't have authorization to create certificates and secrets in our environment.

Programmatically read Azure App Insights logs without a client secret?

删除回忆录丶 提交于 2020-06-16 17:28:28
问题 I have a C# application that writes traces and exceptions to Azure Application Insights using Microsoft.ApplicationInsights and the TelemetryClient class. I want to programmatically search the AI trace and exception logs using C#, as opposed to having to use Kusto queries. Every article I've read on how to do this seems to require that I know the Client Secret for the resource. But I am unable to obtain this, as I don't have authorization to create certificates and secrets in our environment.

convert Application Insights API call result to a Generic Dictionary Unterminated string. Expected delimiter

笑着哭i 提交于 2020-05-16 19:12:17
问题 I am using Application Insight to log CustomEvent. I would like querying it by code (c#). I found how to use the REST API, and using GET/Query to run a query and get the JSON result. I am trying to convert data using Proposed Answer now I am facing below issue while converting data to json from the below code. This issue occurred when I tried to get exceptions from API. Line in which I am getting the issue json2 = JsonConvert.DeserializeObject<List<dynamic>>(a.Trim()); below error I am

Custom Events in Azure Monitor for .NET Core

风格不统一 提交于 2020-04-17 21:49:45
问题 I am trying to get custom events from Azure via the Microsoft.Azure.Management.Monitor API (preview), but I get a "Bad Request" response when doing so. var context = new AuthenticationContext("https://login.microsoftonline.com/" + tenantId, false); var credential = new ClientCredential(clientId: clientId, clientSecret: secret); var result = context.AcquireTokenAsync("https://management.core.windows.net/", credential); var accesstoken = result.GetAwaiter().GetResult().AccessToken; var

Overriding Log Level for Azure Functions

╄→гoц情女王★ 提交于 2020-04-16 02:27:12
问题 Is there a way to override the default log level of an Azure Function app without updating the host.json file? I want my function to pass trace logs to application insights only on dev environment. I'm thinking if an environment variable can just be set and the function will know when to pass the logs. 回答1: we can't configure the log level using environment variables. When function host starts, it reads log level from host.json and inject ILogger instance with corresponding filter rules. Host