@@ -24,8 +24,8 @@ representing [trace context](../logs/data-model.md#trace-context-fields). This
2424document defines how trace context should be recorded in non-OTLP Log Formats.
2525To summarize, the following field names should be used in legacy formats:
2626
27- - "trace_id" for [ TraceId] ( ../logs/data-model.md#field-traceid ) , hex-encoded.
28- - "span_id" for [ SpanId] ( ../logs/data-model.md#field-spanid ) , hex-encoded.
27+ - "trace_id" for [ TraceId] ( ../logs/data-model.md#field-traceid ) , lowercase and hex-encoded.
28+ - "span_id" for [ SpanId] ( ../logs/data-model.md#field-spanid ) , lowercase and hex-encoded.
2929- "trace_flags" for [ trace flags] ( ../logs/data-model.md#field-traceflags ) , formatted
3030 according to W3C traceflags format.
3131
@@ -39,7 +39,7 @@ Trace id, span id and traceflags SHOULD be recorded via SD-ID "opentelemetry".
3939For example:
4040
4141```
42- [opentelemetry trace_id="102981ABCD2901 " span_id="abcdef1010" trace_flags="01"]
42+ [opentelemetry trace_id="102981abcd2901 " span_id="abcdef1010" trace_flags="01"]
4343```
4444
4545### Plain Text Formats
@@ -48,7 +48,7 @@ The fields SHOULD be recorded according to the customary approach used for a
4848particular format (e.g. field: value format for LTSV). For example:
4949
5050```
51- host:192.168.0.1<TAB>trace_id:102981ABCD2901 <TAB>span_id:abcdef1010<TAB>time:[01/Jan/2010:10:11:23 -0400]<TAB>req:GET /health HTTP/1.0<TAB>status:200
51+ host:192.168.0.1<TAB>trace_id:102981abcd2901 <TAB>span_id:abcdef1010<TAB>time:[01/Jan/2010:10:11:23 -0400]<TAB>req:GET /health HTTP/1.0<TAB>status:200
5252```
5353
5454### JSON Formats
@@ -59,7 +59,7 @@ The fields SHOULD be recorded as top-level fields in the JSON structure. For exa
5959{
6060 "timestamp" :1581385157.14429 ,
6161 "body" :" Incoming request" ,
62- "trace_id" :" 102981ABCD2901 " ,
62+ "trace_id" :" 102981abcd2901 " ,
6363 "span_id" :" abcdef1010"
6464}
6565```
0 commit comments