Azure / Azure/azure-rest-api-specs

Real response from server end is not same with the swagger spec in application insight

Open
#8,633 6 comments 0 reactions 1 assignee Claimed by @alongafni View on GitHub
Monitor - ApplicationInsights Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
3d 2h
Merged PRs (30d)
424

Description

ref https://github.com/Azure/azure-cli-extensions/issues/1221
In the swagger spec, customDimensions is defined as the following line.
https://github.com/Azure/azure-rest-api-specs/blob/master/specification/applicationinsights/data-plane/Microsoft.Insights/preview/v1/AppInsights.json#L1135
However, the real response is
```
"customDimensions": {
"ai_legacyRequestId": "XXXX",
"FunctionExecutionTimeMs": "2279.5392",
"TriggerReason": "This function was programmatically called via the host APIs.",
"FullName": "Functions.handler",
"LogLevel": "Information",
"Category": "Host.Results",
"InvocationId": "XXXX",
"HostInstanceId": "XXXX",
"ProcessId": "37",
"HttpMethod": "POST",
"HttpPath": "/api/handler"
},
```
This inconsistency cause problems in python SDK.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.