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

fixExceptionMessageInGatewayDiagnostics #39507

Merged

Conversation

xinlian12
Copy link
Member

Issue:
for non-cosmos exception, the exceptionMessage is not populated in gatewayDiagnostics. Changed to populate the error message from inner cause as well.

 'gatewayStatisticsList': [{
                'sessionToken': null,
                'operationType': 'Query',
                'resourceType': 'Document',
                'statusCode': 0,
                'subStatusCode': 0,
                'requestCharge': 0.0,
                'requestTimeline': [{
                        'eventName': 'connectionAcquired',
                        'startTimeUTC': '2024-03-05T11:08:00.498624Z',
                        'durationInMilliSecs': 0.055
                    }, {
                        'eventName': 'connectionConfigured',
                        'startTimeUTC': '2024-03-05T11:08:00.498679Z',
                        'durationInMilliSecs': 0.003
                    }, {
                        'eventName': 'requestSent',
                        'startTimeUTC': '2024-03-05T11:08:00.498682Z',
                        'durationInMilliSecs': 0.119
                    }, {
                        'eventName': 'transitTime',
                        'startTimeUTC': '2024-03-05T11:08:00.498801Z',
                        'durationInMilliSecs': 283.278
                    }, {
                        'eventName': 'received',
                        'startTimeUTC': null,
                        'durationInMilliSecs': 0.0
                    }
                ],
                'partitionKeyRangeId': null,
                'responsePayloadSizeInBytes': 0,
                'exceptionResponseHeaders': '{}'
            }
        ],

Copy link
Member

@FabianMeiswinkel FabianMeiswinkel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@FabianMeiswinkel FabianMeiswinkel enabled auto-merge (squash) April 2, 2024 19:00
@FabianMeiswinkel FabianMeiswinkel merged commit ed87434 into Azure:main Apr 2, 2024
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants