Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear trace response instead of metric response in OTelExportSinkNode::ConsumeSpans #1910

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

benkilimnik
Copy link
Member

Summary: Addresses a couple of small-ish bugs

  • ConsumeSpans is mistakenly clearing the metrics_response_ (which is used in ConsumeMetrics) instead of the trace_response_.
  • There is a duplicate return statement in OTelModule::Init.

Type of change: /kind bug

Test Plan: CI, skaffold-ed standalone pem and ran OTel export scripts

…move duplicate return in OTelModule::Init

Signed-off-by: Benjamin Kilimnik <[email protected]>
@benkilimnik benkilimnik requested a review from a team May 20, 2024 20:04
@benkilimnik benkilimnik marked this pull request as ready for review May 20, 2024 20:04
@benkilimnik benkilimnik requested a review from a team as a code owner May 20, 2024 20:04
@@ -340,7 +340,7 @@ Status OTelExportSinkNode::ConsumeSpans(ExecState* exec_state, const RowBatch& r
}
context.set_compression_algorithm(GRPC_COMPRESS_GZIP);

metrics_response_.Clear();
trace_response_.Clear();
Copy link
Member

@vihangm vihangm May 20, 2024

Choose a reason for hiding this comment

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

can you add a small test for this so that we don't reintroduce this bug?
(and probably an equivalent one for ConsumeMetrics)

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.

None yet

2 participants