Skip to content

Conversation

liulinC
Copy link
Collaborator

@liulinC liulinC commented Apr 18, 2024

No description provided.

GabrielBuica and others added 24 commits March 27, 2024 11:03
Add standard http attributes to from opentelemetry such as:

- `http.request.method`
- `http.request.header.content-type`;
- `http.request.body.size`;
- `http.request.header.user-agent`;
- `http.request.header.(key)`.

This improves debuggability associated with client requests.

Signed-off-by: Gabriel Buica <[email protected]>
Protocol_unix spawns a new thread for each request and already processes requests concurrently.
However Protocol_{lwt,async} was waiting for each request to be fully processed before fetching and dispatching the next one.

Change `iter` to `iter_donwait`, run all promises in parallel, and don't wait for any of them to complete.
Exceptions have to go somewhere though, so set up an Lwt.async_exception_hook that logs the exception.

Note: this might need some throttling so that sending lots of RPC calls doesn't cause the server to run OOM.But Protocol_unix already has this problem.

Signed-off-by: Edwin Török <[email protected]>
Previously we had problems with making message switch process multiple
messages at the same time, especially with the xapi-storage-script. It
would still be good to have this feature, but be more conservative and
make it off by default.

Signed-off-by: Vincent Liu <[email protected]>
…witch-optional

CP-47033: Make message switch concurrent processing optional
OTEL_RESOURCE_ATTRIBUTES is in W3CBaggageFormat and thus uses %.
ConfigParser attempts to interpolate these % signs but we want them to
be left alone, so set interpolation=None

Signed-off-by: Steven Woods <[email protected]>
…-391485

CA-391485: Avoid InterpolationSyntaxError by turning off interpolation
A recent change added the dependency

Signed-off-by: Pau Ruiz Safont <[email protected]>
There's no need for suffix, Ocaml has different namespace for types.
This was suggested as part of a code review.

Signed-off-by: Frediano Ziglio <[email protected]>
…wer!

Don't use string comparisons for versions, "17" < "2", but 17 > 2!

Signed-off-by: Edwin Török <[email protected]>
…enver

xenopsd: fix Xen version comparison. 4.17 is > 4.2, not lower!
…CP-47660

CP-47660 define anti-affinity feature
Not only print the time taken for program execution but also
check the process was stopped not too early and not too late.

Signed-off-by: Frediano Ziglio <[email protected]>
Add standard http attributes to from opentelemetry such as:

- `network.local.address`;
- `network.local.port`;
- `network.peer.address`;
- `network.peer.port`.

 This improves debuggability associated with client requests.

Signed-off-by: Gabriel Buica <[email protected]>
@liulinC liulinC requested review from gangj and minglumlu April 18, 2024 02:30
@liulinC liulinC merged commit 3921246 into xapi-project:feature/xs9 Apr 18, 2024
Copy link

pytype_reporter extracted 50 problem reports from pytype output

.

You can check the results of the job here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.