-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating low level spans (right above bridge/guest connection) to use tracing/log-level sampler. Set span kind to client/server, as required, for bridge RPC calls. Added traces and spans to public fuctions and wait goroutines in contaienrd-shim-runhcs. Sampler in cmd/contaienrd-shim-runhcs calls underneath main `service` calls exposed to containerd use trace samples, and that is inherited by calls beneath it. Exceptions are made for internal functions that are called with context.Background. In places where spans did not seem necessary, added `Trace()` calls. Additionally, if the context was propagated to other calls, or further logging was done, added entry used for `Trace` to the context for further propagation to callees. Updated internal/cmd to use spans within `.Start()` and `.Wait()` Reduced the number of `INFO` level logs printed, downgrading to `DEBUG`. Moved traces and spans from inside `Once.Do()`, so that they are always logged, even if the `Once` does not execute. Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
- Loading branch information
Showing
106 changed files
with
1,515 additions
and
579 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.