Skip to content

Enable tracing in CRI http stream server#7692

Closed
swagatbora90 wants to merge 1 commit intocontainerd:mainfrom
swagatbora90:trace-cri-stream
Closed

Enable tracing in CRI http stream server#7692
swagatbora90 wants to merge 1 commit intocontainerd:mainfrom
swagatbora90:trace-cri-stream

Conversation

@swagatbora90
Copy link
Copy Markdown
Contributor

Use otelhttp to trace CRI stream server http requests
* Added dependency "go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"

Signed-off-by: Swagat Bora [email protected]

CRI Stream Server

Screen Shot 2022-11-17 at 4 11 42 PM

@k8s-ci-robot
Copy link
Copy Markdown

Hi @swagatbora90. Thanks for your PR.

I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@liangyuanpeng
Copy link
Copy Markdown

@swagatbora90
Hi,Thanks for your work, I want to know is it mean the image registry can get the traceid when containerd pull image?

@swagatbora90
Copy link
Copy Markdown
Contributor Author

@swagatbora90 Hi,Thanks for your work, I want to know is it mean the image registry can get the traceid when containerd pull image?

Hi @liangyuanpeng, This PR instruments tracing specifically to the calls received by the CRI stream server from Kubelet or directly from API Server. This supports the exec, attach and port-forward operations. Also, to correlate the traces with the client request, the client will need to send the context containing the necessary tracing info as part of the http request headers. Otelhttp provides Transport to do just that.

Yes, it is possible for containerd to send traceid information as part of the http request to image registries. Currently, it is only creating a span on the client side but if needed, we can look into sending the trace information in the request as well. link

@swagatbora90
Copy link
Copy Markdown
Contributor Author

/cc @mxpv @kzys

@k8s-ci-robot k8s-ci-robot requested review from kzys and mxpv March 2, 2023 17:32
@mxpv
Copy link
Copy Markdown
Member

mxpv commented Mar 2, 2023

Needs rebase to resolve merge conflicts

@github-actions
Copy link
Copy Markdown

This PR is stale because it has been open 90 days with no activity. This PR will be closed in 7 days unless new comments are made or the stale label is removed.

@k8s-ci-robot
Copy link
Copy Markdown

PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@github-actions github-actions Bot removed the Stale label Nov 30, 2023
@github-actions
Copy link
Copy Markdown

This PR is stale because it has been open 90 days with no activity. This PR will be closed in 7 days unless new comments are made or the stale label is removed.

@github-actions github-actions Bot added the Stale label Mar 21, 2024
@github-actions
Copy link
Copy Markdown

This PR was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions Bot closed this Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cri Container Runtime Interface (CRI) needs-ok-to-test needs-rebase Stale status/needs-update Awaiting contributor update

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants