Fix Zipkin trace receiver response: make the HTTP status code from `200` to `202`. (#11356)

This commit is contained in:
Wan Kai 2023-09-25 16:52:59 +08:00 committed by GitHub
parent 7ff7d73642
commit 2b7e5ee625
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,7 @@
* [Breaking Change] Elasticsearch storage merge all management data indices into one index `management`, * [Breaking Change] Elasticsearch storage merge all management data indices into one index `management`,
including `ui_templateui_menucontinuous_profiling_policy`. including `ui_templateui_menucontinuous_profiling_policy`.
* Add a release mechanism for alarm windows when it is expired in case of OOM. * Add a release mechanism for alarm windows when it is expired in case of OOM.
* Apply MQE on K8s layer UI-templates * Fix Zipkin trace receiver response: make the HTTP status code from `200` to `202`.
#### UI #### UI
@ -20,6 +20,7 @@
* Fix the display height of the link tree structure. * Fix the display height of the link tree structure.
* Replace the name by shortName on service widget. * Replace the name by shortName on service widget.
* Refactor: update pagination style. No visualization style change. * Refactor: update pagination style. No visualization style change.
* Apply MQE on K8s layer UI-templates
#### Documentation #### Documentation

View File

@ -101,7 +101,7 @@ public class ZipkinSpanHTTPHandler {
try (final HttpData httpData = request.content()) { try (final HttpData httpData = request.content()) {
final List<Span> spanList = decoder.decodeList(httpData.byteBuf().nioBuffer()); final List<Span> spanList = decoder.decodeList(httpData.byteBuf().nioBuffer());
spanForward.send(spanList); spanForward.send(spanList);
return HttpResponse.of(HttpStatus.OK); return HttpResponse.of(HttpStatus.ACCEPTED);
} }
})); }));
response.whenComplete().handle((unused, throwable) -> { response.whenComplete().handle((unused, throwable) -> {