Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revision 2: adding _WIN32 check
Browse files Browse the repository at this point in the history
oandreeva-nv committed Jun 21, 2023
1 parent 73bbc6a commit b5e5de5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tracer.cc
Original file line number Diff line number Diff line change
@@ -643,7 +643,12 @@ TraceManager::TraceActivity(
std::lock_guard<std::mutex> lk(ts->mtx_);

if (ts->setting_->mode_ == TRACE_MODE_OPENTELEMETRY) {
#ifndef _WIN32
ts->ReportToOpenTelemetry(trace, activity, timestamp_ns);
#else
LOG_ERROR << "Unsupported trace mode: "
<< TraceManager::InferenceTraceModeString(mode_);
#endif
return;
}

0 comments on commit b5e5de5

Please sign in to comment.