log retry count from client request (#21827)
This PR is to log retry param from service call made by the driver in server side. There will be another PR to logs retry for downstream request. --------- Co-authored-by: Lin Lin <linlin1@microsoft.com>
This commit is contained in:
Родитель
bd32470c70
Коммит
98e991c61f
|
@ -69,6 +69,7 @@ export enum HttpProperties {
|
|||
responseFinishToCloseLatencyMs = "responseFinishToCloseLatencyMs",
|
||||
status = "status",
|
||||
url = "url",
|
||||
retryCount = "retryCount",
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -120,6 +120,10 @@ export function jsonMorganLoggerMiddleware(
|
|||
[BaseTelemetryProperties.correlationId]: getCorrelationIdWithHttpFallback(req, res),
|
||||
[CommonProperties.serviceName]: serviceName,
|
||||
[CommonProperties.telemetryGroupName]: "http_requests",
|
||||
[HttpProperties.retryCount]: Number.parseInt(
|
||||
typeof req.query.retry === "string" ? req.query.retry : "0",
|
||||
10,
|
||||
),
|
||||
...additionalProperties,
|
||||
...getTelemetryContextPropertiesWithHttpInfo(req, res),
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче