Skip to content

Commit a95621e

Browse files
committed
cross-links
1 parent af7ff9c commit a95621e

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

articles/api-management/api-management-debug-policies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ This article describes how to debug API Management policies using the [Azure API
2626

2727
## Restrictions and limitations
2828

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.
3030

3131
[!INCLUDE [api-management-tracing-alert](../../includes/api-management-tracing-alert.md)]
3232

articles/api-management/visual-studio-code-tutorial.md

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ You need a subscription key for your API Management instance to test the importe
107107
1. In the Explorer pane, expand the **Operations** node under the *demo-conference-api* that you imported.
108108
1. Select an operation such as *GetSpeakers*, and then right-click the operation and select **Test Operation**.
109109
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.
111110
1. Select **Send request**.
112111

113112
:::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:
126125

127126
Optionally, you can get detailed request tracing information to help you debug and troubleshoot the API.
128127

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.
147129

148130
## Clean up resources
149131

0 commit comments

Comments
 (0)