Skip to content

Commit

Permalink
tracer
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianlin-Zhao committed Aug 1, 2020
1 parent bbdfed1 commit d67c502
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/plugin/plugin/tracer.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "tracer.h"

#include <iostream>
#include <memory>

namespace nostd = opentelemetry::nostd;
namespace common = opentelemetry::common;
Expand Down Expand Up @@ -48,11 +49,13 @@ class Span final : public trace::Span

bool IsRecording() const noexcept override { return true; }

trace::SpanContext GetContext() const noexcept { return span_->GetContext(); }
// Tracer &tracer() const noexcept override { return *tracer_; }

private:
std::shared_ptr<Tracer> tracer_;
std::string name_;
std::unique_ptr<trace::Span> span_;
};
} // namespace

Expand Down

0 comments on commit d67c502

Please sign in to comment.