Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Board Review: Add x-ms-app header to Azure Monitor logs query requests #4570

Closed
srnagar opened this issue Jul 22, 2022 · 3 comments
Closed
Assignees
Labels
architecture board-review Request for an Architectural Board Review

Comments

@srnagar
Copy link
Member

srnagar commented Jul 22, 2022

Contacts and Timeline

About the Service

About the client library

  • Name of the client library: Azure Monitor Query
  • Languages for this review: All languages

Artifacts required (per language)

API views are not applicable for this review.

Ask from the service team

The service team is requesting the client libraries to include x-ms-app header in all requests made to query logs.

Azure/azure-sdk-for-net#27992
Azure/azure-sdk-for-python#23817
Azure/azure-sdk-for-js#21196
Azure/azure-sdk-for-java#28034

  • Should we add a custom header to identify Azure SDK clients?
    - We already have User-Agent header but it contains other details like platform and version information and requires parsing the string to know that it's an Azure SDK client.
  • What's the guidance on adding custom headers in Azure SDK that are used by services?

Background

The Azure Monitor Query client library supports querying metrics and logs from Azure Monitor. Metrics requests go through ARM endpoint while Logs requests have a separate data-plane endpoint. The ask to include this new header is only for querying logs. This header is used by the service to track the caller.

User-Agent header does include the client library details but that string changes between versions, platforms and languages. So, the service prefers to have a consistent value like AzureMonitorQuerySDK for all requests coming from Azure SDK.

Thank you!

@srnagar srnagar added architecture board-review Request for an Architectural Board Review labels Jul 22, 2022
@kyle-patterson
Copy link
Member

Scheduled for 8/2 9a-11a PDT

@tg-msft
Copy link
Member

tg-msft commented Aug 2, 2022

Recording (MS INTERNAL ONLY)

@srnagar
Copy link
Member Author

srnagar commented Aug 3, 2022

After reviewing with the arch board, a decision was made to not make this change. As a workaround, the service team can run a "contains" operation on the user agent string to identify the caller. This workaround has been communicated to Dan Hadari.

@srnagar srnagar closed this as completed Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
architecture board-review Request for an Architectural Board Review
Projects
None yet
Development

No branches or pull requests

3 participants