Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sdk/include/opentelemetry/sdk/trace/sampler.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ struct SamplingResult
{
Decision decision;
// A set of span Attributes that will also be added to the Span. Can be nullptr.
std::unique_ptr<std::map<std::string, openelemetry::common::AttributeValue>> attributes;
std::unique_ptr<const std::map<std::string, opentelemetry::common::AttributeValue>> attributes;
};

/**
Expand Down Expand Up @@ -70,7 +70,7 @@ class Sampler
trace_api::TraceId trace_id,
nostd::string_view name,
trace_api::SpanKind span_kind,
const KeyValueIterable &attributes) noexcept = 0;
const trace_api::KeyValueIterable &attributes) noexcept = 0;

/**
* Returns the sampler name or short description with the configuration.
Expand Down