Skip to content

Commit db1551f

Browse files
authored
Merge branch 'main' into fixgoogletest
2 parents a1aa303 + 27a58cd commit db1551f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

sdk/include/opentelemetry/sdk/metrics/data/exemplar_data.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ using MetricAttributes = opentelemetry::sdk::common::OrderedAttributeMap;
2626
class ExemplarData
2727
{
2828
public:
29-
static ExemplarData Create(std::shared_ptr<trace::SpanContext> context,
29+
static ExemplarData Create(std::shared_ptr<opentelemetry::trace::SpanContext> context,
3030
const opentelemetry::common::SystemTimestamp &timestamp,
3131
const PointDataAttributes &point_data_attr)
3232
{
@@ -47,7 +47,7 @@ class ExemplarData
4747
* Returns the SpanContext associated with this exemplar. If the exemplar was not recorded
4848
* inside a sampled trace, the Context will be invalid.
4949
*/
50-
const trace::SpanContext &GetSpanContext() const noexcept { return context_; }
50+
const opentelemetry::trace::SpanContext &GetSpanContext() const noexcept { return context_; }
5151

5252
static PointType CreateSumPointData(ValueType value)
5353
{
@@ -68,13 +68,13 @@ class ExemplarData
6868
static PointType CreateDropPointData() { return DropPointData{}; }
6969

7070
private:
71-
ExemplarData(std::shared_ptr<trace::SpanContext> context,
71+
ExemplarData(std::shared_ptr<opentelemetry::trace::SpanContext> context,
7272
opentelemetry::common::SystemTimestamp timestamp,
7373
const PointDataAttributes &point_data_attr)
7474
: context_(*context.get()), timestamp_(timestamp), point_data_attr_(point_data_attr)
7575
{}
7676

77-
trace::SpanContext context_;
77+
opentelemetry::trace::SpanContext context_;
7878
opentelemetry::common::SystemTimestamp timestamp_;
7979
PointDataAttributes point_data_attr_;
8080
};

sdk/include/opentelemetry/sdk/metrics/exemplar/reservoir_cell.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,13 @@ class ReservoirCell
137137
auto current_ctx = span->GetContext();
138138
if (current_ctx.IsValid())
139139
{
140-
context_.reset(new trace::SpanContext{current_ctx});
140+
context_.reset(new opentelemetry::trace::SpanContext{current_ctx});
141141
}
142142
}
143143
}
144144

145145
// Cell stores either long or double values, but must not store both
146-
std::shared_ptr<trace::SpanContext> context_;
146+
std::shared_ptr<opentelemetry::trace::SpanContext> context_;
147147
nostd::variant<int64_t, double> value_;
148148
opentelemetry::common::SystemTimestamp record_time_;
149149
MetricAttributes attributes_;

0 commit comments

Comments
 (0)