Skip to content

Commit

Permalink
[geneva-exporter] add traceflag override method to fluentd exporter (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomsonTan authored Feb 17, 2024
1 parent fafac0a commit 3f1b0ef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ class Recordable final : public sdk::trace::Recordable {
const opentelemetry::sdk::instrumentationscope::InstrumentationScope
&instrumentation_scope) noexcept override;

void SetTraceFlags(opentelemetry::trace::TraceFlags flags) noexcept override;

private:
std::string tag_;
nlohmann::json events_;
Expand Down
2 changes: 1 addition & 1 deletion exporters/fluentd/src/trace/fluentd_exporter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ FluentdExporter::FluentdExporter()
*/
std::unique_ptr<sdk::trace::Recordable>
FluentdExporter::MakeRecordable() noexcept {
return std::unique_ptr<sdk::trace::Recordable>(new Recordable);
return std::unique_ptr<sdk::trace::Recordable>(new opentelemetry::exporter::fluentd::trace::Recordable());
}

/**
Expand Down
4 changes: 4 additions & 0 deletions exporters/fluentd/src/trace/recordable.cc
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ void Recordable::SetInstrumentationScope(
instrumentation_scope.GetVersion();
}

void Recordable::SetTraceFlags(opentelemetry::trace::TraceFlags flags) noexcept {
// TODO: process trace flags
}

} // namespace trace
} // namespace fluentd
} // namespace exporter
Expand Down

0 comments on commit 3f1b0ef

Please sign in to comment.