Skip to content

Commit

Permalink
[Geneva] Support TraceState mapping (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomsonTan authored May 24, 2024
1 parent 1a0bdf6 commit 369ac87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
# define FLUENT_FIELD_SPAN_KIND "kind" /* Span Kind */
# define FLUENT_FIELD_SPAN_LINKS "links" /* Span Links array */

# define FLUENT_FIELD_TRACE_STATE "traceState" /* Trace State */

# define FLUENT_FIELD_PROPERTIES "env_properties"

/* Span option constants */
Expand Down
1 change: 1 addition & 0 deletions exporters/fluentd/src/trace/recordable.cc
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ void Recordable::SetIdentity(
options_[FLUENT_FIELD_SPAN_PARENTID] =
std::string(parent_span_id_lower_base16, 16);
options_[FLUENT_FIELD_TRACE_ID] = std::string(trace_id_lower_base16, 32);
options_[FLUENT_FIELD_TRACE_STATE] = span_context.trace_state().ToHeader();
}

void Recordable::SetAttribute(
Expand Down

0 comments on commit 369ac87

Please sign in to comment.