Skip to content

Conversation

@ThomsonTan
Copy link
Contributor

No description provided.

@ThomsonTan ThomsonTan requested a review from a team as a code owner January 29, 2025 22:13

bool ForceFlush(
std::chrono::microseconds timeout = (std::chrono::microseconds::max)()) noexcept override
{
Copy link
Member

@lalitb lalitb Jan 29, 2025

Choose a reason for hiding this comment

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

Just curious, why are we overriding the default forceflush here, which this is also empty?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The ForceFlush from SDK is marked as pure, so we need provide an empty body here.

  virtual bool ForceFlush(
      std::chrono::microseconds timeout = (std::chrono::microseconds::max)()) noexcept = 0;

https://github.com/open-telemetry/opentelemetry-cpp/blob/6603c3a0f10ed907b33979443d0423306fa208e6/sdk/include/opentelemetry/sdk/logs/exporter.h#L54

@ThomsonTan ThomsonTan merged commit f5c979c into open-telemetry:main Jan 29, 2025
2 checks passed
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.

2 participants