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/api-management/api-management-debug-policies.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ This article describes how to debug API Management policies using the [Azure API
26
26
27
27
## Restrictions and limitations
28
28
29
-
* This feature uses the built-in (service-level) all-access subscription (display name "Built-in all-access subscription") for debugging. The [**Allow tracing**](api-management-howto-api-inspector.md#verify-allow-tracing-setting) setting must be enabled in this subscription.
29
+
* This feature uses the built-in (service-level) all-access subscription (display name "Built-in all-access subscription") for debugging.
Copy file name to clipboardExpand all lines: articles/api-management/visual-studio-code-tutorial.md
+1-19Lines changed: 1 addition & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,7 +107,6 @@ You need a subscription key for your API Management instance to test the importe
107
107
1. In the Explorer pane, expand the **Operations** node under the *demo-conference-api* that you imported.
108
108
1. Select an operation such as *GetSpeakers*, and then right-click the operation and select **Test Operation**.
109
109
1. In the editor window, next to **Ocp-Apim-Subscription-Key**, replace `{{SubscriptionKey}}` with the subscription key that you copied.
110
-
1. Next to `Ocp-Apim-Trace`, enter `false`. This setting disables request tracing.
111
110
1. Select **Send request**.
112
111
113
112
:::image type="content" source="media/visual-studio-code-tutorial/test-api.png" alt-text="Screenshot of sending API request from Visual Studio Code.":::
@@ -126,24 +125,7 @@ Notice the following details in the response:
126
125
127
126
Optionally, you can get detailed request tracing information to help you debug and troubleshoot the API.
128
127
129
-
To trace request processing, first enable the **Allow tracing** setting for the subscription used to debug your API. For steps to enable this setting using the portal, see [Verify allow tracing setting](api-management-howto-api-inspector.md#verify-allow-tracing-setting). To limit unintended disclosure of sensitive information, tracing is allowed for only 1 hour.
130
-
131
-
After allowing tracing with your subscription, follow these steps:
132
-
133
-
1. In the Explorer pane, expand the **Operations** node under the *demo-conference-api* that you imported.
134
-
1. Select an operation such as *GetSpeakers*, and then right-click the operation and select **Test Operation**.
135
-
1. In the editor window, next to **Ocp-Apim-Subscription-Key**, replace `{{SubscriptionKey}}` with the subscription key that you want to use.
136
-
1. Next to `Ocp-Apim-Trace`, enter `true`. This setting enables tracing for this request.
137
-
1. Select **Send request**.
138
-
139
-
When the request succeeds, the backend response includes an **Ocp-APIM-Trace-Location** header.
140
-
141
-
:::image type="content" source="media/visual-studio-code-tutorial/test-api-tracing.png" alt-text="Screenshot of tracing location in the API test response in Visual Studio Code.":::
142
-
143
-
Select the link next to **Ocp-APIM-Trace-Location** to see Inbound, Backend, and Outbound trace information. The trace information helps you determine where problems occur after the request is made.
144
-
145
-
> [!TIP]
146
-
> When you test API operations, the API Management extension allows optional [policy debugging](api-management-debug-policies.md) (available only in the Developer service tier).
128
+
For steps to enable tracing for an API, see [Enable tracing for an API](api-management-howto-api-inspector.md#enable-tracing-for-an-api). To limit unintended disclosure of sensitive information, tracing by default is allowed for only 1 hour.
0 commit comments