Skip to content

tracing: fix panic on startup when configured#6789

Merged
estesp merged 1 commit intocontainerd:mainfrom
corhere:fix/otel-panic
Apr 11, 2022
Merged

tracing: fix panic on startup when configured#6789
estesp merged 1 commit intocontainerd:mainfrom
corhere:fix/otel-panic

Conversation

@corhere
Copy link
Copy Markdown
Member

@corhere corhere commented Apr 8, 2022

When support for http/protobuf was added, the OTLP tracing processor plugin was mistakenly changed to return a raw OTLP exporter instance. Consequently, the type-assertion to a trace.SpanProcessor inside the tracing pluigin would panic if the processor plugin was configured. Modify the OTLP plugin to return a BatchSpanProcessor derived from the exporter once more.

When support for http/protobuf was added, the OTLP tracing processor
plugin was mistakenly changed to return a raw OTLP exporter instance.
Consequently, the type-assertion to a trace.SpanProcessor inside the
tracing pluigin would panic if the processor plugin was configured.
Modify the OTLP plugin to return a BatchSpanProcessor derived from the
exporter once more.

Signed-off-by: Cory Snider <csnider@mirantis.com>
@k8s-ci-robot
Copy link
Copy Markdown

Hi @corhere. 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.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Apr 8, 2022

Build succeeded.

@dmcgowan dmcgowan requested a review from cpuguy83 April 8, 2022 20:54
Copy link
Copy Markdown
Member

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@estesp estesp merged commit eaf2862 into containerd:main Apr 11, 2022
@corhere corhere deleted the fix/otel-panic branch April 11, 2022 14:38
Copy link
Copy Markdown

@Ajgera30 Ajgera30 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

La verdad n o se que poner

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants