You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/opentelemetry-enable.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1137,9 +1137,9 @@ app.MapGet("/", () =>
1137
1137
app.Run();
1138
1138
```
1139
1139
1140
-
By default, the activity ends up in the Application Insights `dependencies` table with dependency type `InProc`.
1141
-
1142
-
For code representing a background job not captured by an instrumentation library, we recommend setting `ActivityKind.Server`in the `StartActivity` method to ensure it appears in the Application Insights `requests` table.
1140
+
When calling `StartActivity` it will default to `ActivityKind.Internal` but you can provide any other `ActivityKind`.
1141
+
`ActivityKind.Client`, `ActivityKind.Producer`, and `ActivityKind.Internal` are mapped to Application Insights `dependencies`.
1142
+
`ActivityKind.Server`and `ActivityKind.Consumer` are mapped to Application Insights `requests`.
1143
1143
1144
1144
#### [.NET](#tab/net)
1145
1145
@@ -1160,6 +1160,10 @@ using (var activity = activitySource.StartActivity("CustomActivity"))
1160
1160
}
1161
1161
```
1162
1162
1163
+
When calling `StartActivity` it will default to `ActivityKind.Internal` but you can provide any other `ActivityKind`.
1164
+
`ActivityKind.Client`, `ActivityKind.Producer`, and `ActivityKind.Internal` are mapped to Application Insights `dependencies`.
1165
+
`ActivityKind.Server` and `ActivityKind.Consumer` are mapped to Application Insights `requests`.
0 commit comments