Skip to content

Commit a32b03e

Browse files
committed
Fix formatting
1 parent 67ed142 commit a32b03e

File tree

11 files changed

+14
-13
lines changed

11 files changed

+14
-13
lines changed

api/include/opentelemetry/baggage/baggage_context.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ inline nostd::shared_ptr<Baggage> GetBaggage(const context::Context &context) no
2727
}
2828

2929
inline context::Context SetBaggage(context::Context &context,
30-
const nostd::shared_ptr<Baggage>& baggage) noexcept
30+
const nostd::shared_ptr<Baggage> &baggage) noexcept
3131
{
3232
return context.SetValue(kBaggageHeader, baggage);
3333
}

api/include/opentelemetry/context/propagation/global_propagator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class OPENTELEMETRY_EXPORT GlobalTextMapPropagator
3232
return nostd::shared_ptr<TextMapPropagator>(GetPropagator());
3333
}
3434

35-
static void SetGlobalPropagator(const nostd::shared_ptr<TextMapPropagator>& prop) noexcept
35+
static void SetGlobalPropagator(const nostd::shared_ptr<TextMapPropagator> &prop) noexcept
3636
{
3737
std::lock_guard<common::SpinLockMutex> guard(GetLock());
3838
GetPropagator() = prop;

api/include/opentelemetry/context/runtime_context.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ class OPENTELEMETRY_EXPORT RuntimeContext
152152
*
153153
* @param storage a custom runtime context storage
154154
*/
155-
static void SetRuntimeContextStorage(const nostd::shared_ptr<RuntimeContextStorage>& storage) noexcept
155+
static void SetRuntimeContextStorage(
156+
const nostd::shared_ptr<RuntimeContextStorage> &storage) noexcept
156157
{
157158
GetStorage() = storage;
158159
}

api/include/opentelemetry/logs/provider.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class OPENTELEMETRY_EXPORT Provider
3939
/**
4040
* Changes the singleton LoggerProvider.
4141
*/
42-
static void SetLoggerProvider(const nostd::shared_ptr<LoggerProvider>& tp) noexcept
42+
static void SetLoggerProvider(const nostd::shared_ptr<LoggerProvider> &tp) noexcept
4343
{
4444
std::lock_guard<common::SpinLockMutex> guard(GetLock());
4545
GetProvider() = tp;
@@ -60,7 +60,7 @@ class OPENTELEMETRY_EXPORT Provider
6060
/**
6161
* Changes the singleton EventLoggerProvider.
6262
*/
63-
static void SetEventLoggerProvider(const nostd::shared_ptr<EventLoggerProvider>& tp) noexcept
63+
static void SetEventLoggerProvider(const nostd::shared_ptr<EventLoggerProvider> &tp) noexcept
6464
{
6565
std::lock_guard<common::SpinLockMutex> guard(GetLock());
6666
GetEventProvider() = tp;

api/include/opentelemetry/metrics/provider.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Provider
3838
/**
3939
* Changes the singleton MeterProvider.
4040
*/
41-
static void SetMeterProvider(const nostd::shared_ptr<MeterProvider>& tp) noexcept
41+
static void SetMeterProvider(const nostd::shared_ptr<MeterProvider> &tp) noexcept
4242
{
4343
std::lock_guard<common::SpinLockMutex> guard(GetLock());
4444
GetProvider() = tp;

api/include/opentelemetry/plugin/tracer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class DynamicLibraryHandle;
2020
class Span final : public trace::Span
2121
{
2222
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
2424
: tracer_{std::move(tracer)}, span_{span}
2525
{}
2626

api/include/opentelemetry/trace/default_span.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class DefaultSpan : public Span
6363

6464
nostd::string_view ToString() const noexcept { return "DefaultSpan"; }
6565

66-
DefaultSpan(const SpanContext& span_context) noexcept : span_context_(span_context) {}
66+
DefaultSpan(const SpanContext &span_context) noexcept : span_context_(span_context) {}
6767

6868
// movable and copiable
6969
DefaultSpan(DefaultSpan &&spn) noexcept : Span(), span_context_(spn.GetContext()) {}

api/include/opentelemetry/trace/provider.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class OPENTELEMETRY_EXPORT Provider
3636
/**
3737
* Changes the singleton TracerProvider.
3838
*/
39-
static void SetTracerProvider(const nostd::shared_ptr<TracerProvider>& tp) noexcept
39+
static void SetTracerProvider(const nostd::shared_ptr<TracerProvider> &tp) noexcept
4040
{
4141
std::lock_guard<common::SpinLockMutex> guard(GetLock());
4242
GetProvider() = tp;

api/include/opentelemetry/trace/span_context.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class SpanContext final
4141
SpanId span_id,
4242
TraceFlags trace_flags,
4343
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
4545
: trace_id_(trace_id),
4646
span_id_(span_id),
4747
trace_flags_(trace_flags),
@@ -64,7 +64,7 @@ class SpanContext final
6464
const trace::SpanId &span_id() const noexcept { return span_id_; }
6565

6666
// @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_; }
6868

6969
/*
7070
* @param that SpanContext for comparing.

opentracing-shim/include/opentelemetry/opentracingshim/span_context_shim.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class SpanContextShim final : public opentracing::SpanContext
2424
{}
2525

2626
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_; }
2828
SpanContextShim newWithKeyValue(nostd::string_view key, nostd::string_view value) const noexcept;
2929
bool BaggageItem(nostd::string_view key, std::string &value) const noexcept;
3030

0 commit comments

Comments
 (0)