Skip to content

[release/1.6] tracing: fix panic on startup when configured#6853

Merged
dmcgowan merged 1 commit intocontainerd:release/1.6from
kzys:16-backport-6789
Apr 25, 2022
Merged

[release/1.6] tracing: fix panic on startup when configured#6853
dmcgowan merged 1 commit intocontainerd:release/1.6from
kzys:16-backport-6789

Conversation

@kzys
Copy link
Copy Markdown
Member

@kzys kzys commented Apr 25, 2022

Backport of #6789


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
(cherry picked from commit 927b34e)
Signed-off-by: Kazuyoshi Kato katokazu@amazon.com

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>
(cherry picked from commit 927b34e)
Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
@dmcgowan dmcgowan merged commit 595e77b into containerd:release/1.6 Apr 25, 2022
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.

4 participants