简体   繁体   English

Azure Api管理-尽管子键和跟踪设置为true,跟踪仍不可用

[英]Azure Api Management - Trace not available despite sub keys and trace set to true

The trace tab always says: 跟踪选项卡始终显示:

Trace location was not specified in the response or trace log is not available. 

This is despite me passing both an Ocp-Apim-Subscription-Key and Ocp-Apim-Trace in the headers as described in the docs ( https://docs.microsoft.com/en-us/azure/api-management/api-management-advanced-policies#Trace ). 尽管我按照文档中的说明在标头中同时传递了Ocp-Apim-Subscription-KeyOcp-Apim-Tracehttps://docs.microsoft.com/zh-cn/azure/api-management/api -management-advanced-policies#Trace )。

Yes, my subscription key is tied to an admin account of the Api-m instance. 是的,我的订阅密钥已绑定到Api-m实例的管理员帐户。 The key, however, is tied to a product which holds the underlying Api. 但是,密钥与持有基础Api的产品相关。 Does that make any difference? 那有什么区别吗?

Anyone else encountered this issue? 其他人遇到过这个问题吗?

The subscription key of the product that is associated with this API that the developer can use the keys in it to access all APIs in the product. 与该API关联的产品的订阅密钥,开发人员可以使用其中的密钥来访问产品中的所有API。

API Inspector traces are only generated and made available for requests containing subscription keys that belong to the administrator account. API Inspector跟踪仅生成,并且可用于包含属于管理员帐户的订阅密钥的请求。

You can get the admin subscription key in Developer Portal -> Profile -> find your API and subscription key. 您可以在Developer Portal > Profile ->查找您的API和订阅密钥中获取管理员订阅密钥。

In the response headers will be an ocp-apim-trace-location , for more details you could refer to this article . 在响应头中将是ocp-apim-trace-location ,有关更多详细信息,请参阅本文

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM