Skip to content

Commit 8e91cc2

Browse files
committed
fixed validation warning
1 parent 25b3e4e commit 8e91cc2

File tree

1 file changed

+15
-19
lines changed

1 file changed

+15
-19
lines changed

articles/search/search-traffic-analytics.md

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,17 @@ For Azure AI Search, the Azure [portal](https://portal.azure.com) provides a Sea
5555

5656
## Step 1: Set up Application Insights
5757

58-
Select an existing Application Insights resource or [create one](/previous-versions/azure/azure-monitor/app/create-new-resource) if you don't have one already.
58+
Create an object that sends events to Application Insights. You can add instrumentation to your server-side application code or client-side code running in a browser, expressed here as C# and JavaScript variants. For other languages, see [supported platforms and frameworks](/azure/azure-monitor/app/app-insights-overview#supported-languages).
5959

60-
A shortcut that works for some Visual Studio project types is reflected in the following steps.
60+
Server-side telemetry captures metrics at the application layer, for example in applications running as a web service on Azure, or as an on-premises app on a corporate network. Server-side telemetry captures search and click events, the position of a document in results, and query information, but your data collection will be scoped to whatever information is available at that layer.
61+
62+
On the client, you might have other code that manipulates query inputs, adds navigation, or includes context (for example, queries initiated from a home page versus a product page). If this describes your solution, you might opt for client-side instrumentation so that your telemetry reflects the extra detail. How this extra detail is collected goes beyond the scope of this pattern, but you can review [Application Insights for web pages](/azure/azure-monitor/app/javascript#explore-browserclient-side-data) for help with that decision.
63+
64+
In this step, provide a [connection string to Application Insights](/azure/azure-monitor/app/migrate-from-instrumentation-keys-to-connection-strings).
6165

62-
For illustration, these steps use the client from [Add search to a static web app](tutorial-csharp-overview.md).
66+
### [**Visual Studio**](#tab/visual-studio-telemetry-client)
67+
68+
A shortcut that works for some Visual Studio project types is reflected in the following steps.
6369

6470
1. Open your solution in Visual Studio.
6571

@@ -71,21 +77,7 @@ For illustration, these steps use the client from [Add search to a static web ap
7177

7278
At this point, your application is set up for application monitoring, which means all page loads in your client app are tracked with default metrics.
7379

74-
If this shortcut didn't work for you, see [Enable Application Insights server-side telemetry](/azure/azure-monitor/app/asp-net-core#enable-application-insights-server-side-telemetry-visual-studio).
75-
76-
## Step 2: Add instrumentation
77-
78-
Add instrumentation code to your client application.
79-
80-
### Create a telemetry client
81-
82-
Create an object that sends events to Application Insights. You can add instrumentation to your server-side application code or client-side code running in a browser, expressed here as C# and JavaScript variants. For other languages, see [supported platforms and frameworks](/azure/azure-monitor/app/app-insights-overview#supported-languages).
83-
84-
Server-side telemetry captures metrics at the application layer, for example in applications running as a web service on Azure, or as an on-premises app on a corporate network. Server-side telemetry captures search and click events, the position of a document in results, and query information, but your data collection will be scoped to whatever information is available at that layer.
85-
86-
On the client, you might have other code that manipulates query inputs, adds navigation, or includes context (for example, queries initiated from a home page versus a product page). If this describes your solution, you might opt for client-side instrumentation so that your telemetry reflects the extra detail. How this extra detail is collected goes beyond the scope of this pattern, but you can review [Application Insights for web pages](/azure/azure-monitor/app/javascript#explore-browserclient-side-data) for help with that decision.
87-
88-
Provide a [connection string to Application Insights](/azure/azure-monitor/app/migrate-from-instrumentation-keys-to-connection-strings).
80+
If this shortcut didn't work for you, see [Enable Application Insights server-side telemetry](/azure/azure-monitor/app/asp-net-core#enable-application-insights-server-side-telemetry-visual-studio) or refer to code snippets in the adjacent tabs.
8981

9082
### [**.NET**](#tab/dotnet-telemetry-client)
9183

@@ -109,6 +101,10 @@ appInsights.loadAppInsights();
109101

110102
---
111103

104+
## Step 2: Add instrumentation
105+
106+
Add instrumentation code to your client application.
107+
112108
### Correlate click events with search results
113109

114110
To correlate search requests with clicks, it's necessary to have a correlation ID that relates these two distinct events. Azure AI Search provides you with a search ID when you request it with an HTTP header.
@@ -194,7 +190,7 @@ const properties = {
194190

195191
### Send the custom event to Application Insights
196192

197-
Add the custom even to the *custom events* table in Application Insights. For more information, see [](/azure/azure-monitor/app/api-custom-events-metrics).
193+
Add the custom even to the *custom events* table in Application Insights. For more information, see [Application Insights API for custom events and metrics](/azure/azure-monitor/app/api-custom-events-metrics).
198194

199195
### [**.NET**](#tab/dotnet-custom-events)
200196

0 commit comments

Comments
 (0)