Skip to content

Commit

Permalink
Jaeger exporter shutdown (open-telemetry#1150)
Browse files Browse the repository at this point in the history
  • Loading branch information
esigo authored Dec 19, 2021
1 parent f60eec2 commit 85ea91f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,7 @@ class JaegerExporter final : public opentelemetry::sdk::trace::SpanExporter
* @param timeout an option timeout, default to max.
*/
bool Shutdown(
std::chrono::microseconds timeout = std::chrono::microseconds::max()) noexcept override
{
return true;
}
std::chrono::microseconds timeout = std::chrono::microseconds::max()) noexcept override;

private:
void InitializeEndpoint();
Expand Down
6 changes: 6 additions & 0 deletions exporters/jaeger/src/jaeger_exporter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ void JaegerExporter::InitializeEndpoint()
assert(false);
}

bool JaegerExporter::Shutdown(std::chrono::microseconds timeout) noexcept
{
is_shutdown_ = true;
return true;
}

} // namespace jaeger
} // namespace exporter
OPENTELEMETRY_END_NAMESPACE

0 comments on commit 85ea91f

Please sign in to comment.