File tree Expand file tree Collapse file tree 11 files changed +14
-13
lines changed
api/include/opentelemetry
opentracing-shim/include/opentelemetry/opentracingshim
sdk/include/opentelemetry/sdk/common Expand file tree Collapse file tree 11 files changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ inline nostd::shared_ptr<Baggage> GetBaggage(const context::Context &context) no
27
27
}
28
28
29
29
inline context::Context SetBaggage (context::Context &context,
30
- const nostd::shared_ptr<Baggage>& baggage) noexcept
30
+ const nostd::shared_ptr<Baggage> & baggage) noexcept
31
31
{
32
32
return context.SetValue (kBaggageHeader , baggage);
33
33
}
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ class OPENTELEMETRY_EXPORT GlobalTextMapPropagator
32
32
return nostd::shared_ptr<TextMapPropagator>(GetPropagator ());
33
33
}
34
34
35
- static void SetGlobalPropagator (const nostd::shared_ptr<TextMapPropagator>& prop) noexcept
35
+ static void SetGlobalPropagator (const nostd::shared_ptr<TextMapPropagator> & prop) noexcept
36
36
{
37
37
std::lock_guard<common::SpinLockMutex> guard (GetLock ());
38
38
GetPropagator () = prop;
Original file line number Diff line number Diff line change @@ -152,7 +152,8 @@ class OPENTELEMETRY_EXPORT RuntimeContext
152
152
*
153
153
* @param storage a custom runtime context storage
154
154
*/
155
- static void SetRuntimeContextStorage (const nostd::shared_ptr<RuntimeContextStorage>& storage) noexcept
155
+ static void SetRuntimeContextStorage (
156
+ const nostd::shared_ptr<RuntimeContextStorage> &storage) noexcept
156
157
{
157
158
GetStorage () = storage;
158
159
}
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class OPENTELEMETRY_EXPORT Provider
39
39
/* *
40
40
* Changes the singleton LoggerProvider.
41
41
*/
42
- static void SetLoggerProvider (const nostd::shared_ptr<LoggerProvider>& tp) noexcept
42
+ static void SetLoggerProvider (const nostd::shared_ptr<LoggerProvider> & tp) noexcept
43
43
{
44
44
std::lock_guard<common::SpinLockMutex> guard (GetLock ());
45
45
GetProvider () = tp;
@@ -60,7 +60,7 @@ class OPENTELEMETRY_EXPORT Provider
60
60
/* *
61
61
* Changes the singleton EventLoggerProvider.
62
62
*/
63
- static void SetEventLoggerProvider (const nostd::shared_ptr<EventLoggerProvider>& tp) noexcept
63
+ static void SetEventLoggerProvider (const nostd::shared_ptr<EventLoggerProvider> & tp) noexcept
64
64
{
65
65
std::lock_guard<common::SpinLockMutex> guard (GetLock ());
66
66
GetEventProvider () = tp;
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ class Provider
38
38
/* *
39
39
* Changes the singleton MeterProvider.
40
40
*/
41
- static void SetMeterProvider (const nostd::shared_ptr<MeterProvider>& tp) noexcept
41
+ static void SetMeterProvider (const nostd::shared_ptr<MeterProvider> & tp) noexcept
42
42
{
43
43
std::lock_guard<common::SpinLockMutex> guard (GetLock ());
44
44
GetProvider () = tp;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class DynamicLibraryHandle;
20
20
class Span final : public trace::Span
21
21
{
22
22
public:
23
- Span (std::shared_ptr<trace::Tracer> &&tracer, const nostd::shared_ptr<trace::Span>& span) noexcept
23
+ Span (std::shared_ptr<trace::Tracer> &&tracer, const nostd::shared_ptr<trace::Span> & span) noexcept
24
24
: tracer_{std::move (tracer)}, span_{span}
25
25
{}
26
26
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ class DefaultSpan : public Span
63
63
64
64
nostd::string_view ToString () const noexcept { return " DefaultSpan" ; }
65
65
66
- DefaultSpan (const SpanContext& span_context) noexcept : span_context_(span_context) {}
66
+ DefaultSpan (const SpanContext & span_context) noexcept : span_context_(span_context) {}
67
67
68
68
// movable and copiable
69
69
DefaultSpan (DefaultSpan &&spn) noexcept : Span(), span_context_(spn.GetContext()) {}
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ class OPENTELEMETRY_EXPORT Provider
36
36
/* *
37
37
* Changes the singleton TracerProvider.
38
38
*/
39
- static void SetTracerProvider (const nostd::shared_ptr<TracerProvider>& tp) noexcept
39
+ static void SetTracerProvider (const nostd::shared_ptr<TracerProvider> & tp) noexcept
40
40
{
41
41
std::lock_guard<common::SpinLockMutex> guard (GetLock ());
42
42
GetProvider () = tp;
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ class SpanContext final
41
41
SpanId span_id,
42
42
TraceFlags trace_flags,
43
43
bool is_remote,
44
- const nostd::shared_ptr<TraceState>& trace_state = TraceState::GetDefault()) noexcept
44
+ const nostd::shared_ptr<TraceState> & trace_state = TraceState::GetDefault()) noexcept
45
45
: trace_id_(trace_id),
46
46
span_id_(span_id),
47
47
trace_flags_(trace_flags),
@@ -64,7 +64,7 @@ class SpanContext final
64
64
const trace::SpanId &span_id () const noexcept { return span_id_; }
65
65
66
66
// @returns the trace_state associated with this span_context
67
- const nostd::shared_ptr<trace::TraceState>& trace_state () const noexcept { return trace_state_; }
67
+ const nostd::shared_ptr<trace::TraceState> & trace_state () const noexcept { return trace_state_; }
68
68
69
69
/*
70
70
* @param that SpanContext for comparing.
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class SpanContextShim final : public opentracing::SpanContext
24
24
{}
25
25
26
26
inline const opentelemetry::trace::SpanContext &context () const { return context_; }
27
- inline const BaggagePtr& baggage () const { return baggage_; }
27
+ inline const BaggagePtr & baggage () const { return baggage_; }
28
28
SpanContextShim newWithKeyValue (nostd::string_view key, nostd::string_view value) const noexcept ;
29
29
bool BaggageItem (nostd::string_view key, std::string &value) const noexcept ;
30
30
You can’t perform that action at this time.
0 commit comments