Releases: atidev/ATI.Services.Common
Releases · atidev/ATI.Services.Common
.net 6, Localization, FlowContext
Upgrade package to .net 6
Add Localization behavior with Accept-Language http header and accept_language rabbit mq header
Add FlowContext behavior by AsyncLocal
You need upgrade your docker file to .net 6 images and you may change timezone in docker file, example%
# change timezone from ETC to local
RUN apt update && apt install tzdata -y
ENV TZ="Europe/Moscow"
v8.5.0
What's Changed
Now MeasureAttribute
gives opportunity to set a specific longRequestTimeSeconds
for every controller action method:
[Measure(MetricEntity.Rating, longRequestTimeSeconds: 2.5)]
public async Task<IActionResult> GetRating([FromQuery] RatingQuery query) {
....
}
[Measure(MetricEntity.Rating, longRequestTimeSeconds: 60)]
public async Task<IActionResult> RecalculateRating() {
...
}
Important
If atisu.services.consul and atisu.services.rabbitmq are also used in project them should be updated to v5.7.1 and v3.1.2 or higher respectively.
v9.0.0-rc-1
.net6 and FlowContext
v8.4.1
v8.4.0
v8.3.3
v8.3.2
Add Headers to proxy
Add ServiceVariables.HeadersToProxy:
"ServiceVariablesOptions": {
"Variables": {
"HeadersToProxy": ["Header1", "Header2"] // HttpRequest headers to proxy to another services
}
}
If you want to disable proxy mechanism on some service, set:
"BaseServiceOptions":{
"ProxyServiceVariablesHeaders": false
}
v8.2.1
Add PatchMethods in TracingHttpClientWrapper