diff --git a/sdk/include/opentelemetry/sdk/trace/always_off_sampler.h b/sdk/include/opentelemetry/sdk/trace/always_off_sampler.h index d9d63d91d7..0547068280 100644 --- a/sdk/include/opentelemetry/sdk/trace/always_off_sampler.h +++ b/sdk/include/opentelemetry/sdk/trace/always_off_sampler.h @@ -19,11 +19,11 @@ class AlwaysOffSampler : public Sampler * @return Returns NOT_RECORD always */ SamplingResult ShouldSample( - const SpanContext *parent_context, - trace_api::TraceId trace_id, - nostd::string_view name, - trace_api::SpanKind span_kind, - const trace_api::KeyValueIterable &attributes) noexcept override + const SpanContext * /*parent_context*/, + trace_api::TraceId /*trace_id*/, + nostd::string_view /*name*/, + trace_api::SpanKind /*span_kind*/, + const trace_api::KeyValueIterable & /*attributes*/) noexcept override { return { Decision::NOT_RECORD, nullptr }; }