Skip to content

Commit

Permalink
Update tracer.h
Browse files Browse the repository at this point in the history
  • Loading branch information
srgbtl authored Aug 3, 2021
1 parent fa107a8 commit 0a4f4f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/include/opentelemetry/trace/tracer.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class Tracer
void ForceFlush(std::chrono::duration<Rep, Period> timeout) noexcept
{
this->ForceFlushWithMicroseconds(
static_cast<uint64_t>(std::chrono::duration_cast<std::chrono::microseconds>(timeout)));
static_cast<uint64_t>(std::chrono::duration_cast<std::chrono::microseconds>(timeout).count()));
}

virtual void ForceFlushWithMicroseconds(uint64_t timeout) noexcept = 0;
Expand All @@ -184,7 +184,7 @@ class Tracer
void Close(std::chrono::duration<Rep, Period> timeout) noexcept
{
this->CloseWithMicroseconds(
static_cast<uint64_t>(std::chrono::duration_cast<std::chrono::microseconds>(timeout)));
static_cast<uint64_t>(std::chrono::duration_cast<std::chrono::microseconds>(timeout).count()));
}

virtual void CloseWithMicroseconds(uint64_t timeout) noexcept = 0;
Expand Down

0 comments on commit 0a4f4f8

Please sign in to comment.