Skip to content
This repository was archived by the owner on Dec 23, 2023. It is now read-only.

Commit b8796a2

Browse files
authored
Substitute non-ascii characters in B3Format header key. (#1072) (#1127)
(cherry picked from commit 3683e62)
1 parent 1589300 commit b8796a2

File tree

1 file changed

+4
-4
lines changed
  • impl_core/src/main/java/io/opencensus/implcore/trace/propagation

1 file changed

+4
-4
lines changed

impl_core/src/main/java/io/opencensus/implcore/trace/propagation/B3Format.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434
* href=https://github.com/openzipkin/b3-propagation>b3-propagation</a>.
3535
*/
3636
final class B3Format extends TextFormat {
37-
@VisibleForTesting static final String X_B3_TRACE_ID = "X─B3─TraceId";
38-
@VisibleForTesting static final String X_B3_SPAN_ID = "X─B3─SpanId";
39-
@VisibleForTesting static final String X_B3_PARENT_SPAN_ID = "X─B3─ParentSpanId";
40-
@VisibleForTesting static final String X_B3_SAMPLED = "X─B3─Sampled";
37+
@VisibleForTesting static final String X_B3_TRACE_ID = "X-B3-TraceId";
38+
@VisibleForTesting static final String X_B3_SPAN_ID = "X-B3-SpanId";
39+
@VisibleForTesting static final String X_B3_PARENT_SPAN_ID = "X-B3-ParentSpanId";
40+
@VisibleForTesting static final String X_B3_SAMPLED = "X-B3-Sampled";
4141
@VisibleForTesting static final String X_B3_FLAGS = "X-B3-Flags";
4242
private static final List<String> FIELDS =
4343
Collections.unmodifiableList(

0 commit comments

Comments
 (0)