From 78d488ca44d6a9aed79e63da739b081e20c94207 Mon Sep 17 00:00:00 2001 From: Tom Tan Date: Thu, 23 May 2024 05:54:53 -0700 Subject: [PATCH] [BUILD] Remove the hard-coded separator in tracestate (#2672) --- api/include/opentelemetry/trace/trace_state.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/include/opentelemetry/trace/trace_state.h b/api/include/opentelemetry/trace/trace_state.h index 8a25f4da5c..f51410025a 100644 --- a/api/include/opentelemetry/trace/trace_state.h +++ b/api/include/opentelemetry/trace/trace_state.h @@ -95,7 +95,7 @@ class OPENTELEMETRY_EXPORT TraceState [&header_s, &first](nostd::string_view key, nostd::string_view value) noexcept { if (!first) { - header_s.append(","); + header_s.append(1, kMembersSeparator); } else {