From 6cf00cbd3b68fc4f642319062b498bd76d48849c Mon Sep 17 00:00:00 2001 From: szTheory Date: Thu, 3 Dec 2020 18:07:03 +0000 Subject: [PATCH] README: markdown syntax highlighting --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0dbc41c..114fa07 100644 --- a/README.md +++ b/README.md @@ -107,7 +107,7 @@ To disable sweeping set `interval` to `infinity`. OTP-21 includes a new logging framework. When a context is created with a span (for example `ocp:with_child_span/1` or `oc_trace:with_child_span/2`) opencensus will update the current process's logger metadata to include the `trace_id`, `span_id` and `trace_options` with the latest ids under the key `span_ctx`, `trace_options` will be `1` if the trace is enabled. To use these with the default formatter you can create a custom template that includes them if they exist like so: -``` +```erlang {logger_formatter, #{template => [time, " ", pid, " ", {[span_ctx, trace_id], ["trace_id=", [span_ctx, trace_id], " "], []},