Skip to content

Commit

Permalink
Add otel_trace_flags to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
reachfh committed Jan 26, 2024
1 parent 0081e45 commit c52b2a7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ config :logger, :default_handler,
:pid,
:request_id,
:otel_trace_id,
:otel_span_id
:otel_span_id,
:otel_trace_flags
]
}
}
Expand Down Expand Up @@ -132,7 +133,8 @@ config :foo, :logger_formatter_config, {:logger_formatter_json,
:pid,
:request_id,
:otel_trace_id,
:otel_span_id
:otel_span_id,
:otel_trace_flags
]
}}
```
Expand Down Expand Up @@ -160,7 +162,7 @@ In `rel/vm.args.eex`, set up the logger:
or, with options:

```erlang
-kernel logger '[{handler, default, logger_std_h, #{formatter => {logger_formatter_json, #{template => [msg, time, level, file, line, mfa, pid, otel_trace_id, otel_span_id]}}}}]'
-kernel logger '[{handler, default, logger_std_h, #{formatter => {logger_formatter_json, #{template => [msg, time, level, file, line, mfa, pid, otel_trace_id, otel_span_id, otel_trace_flags]}}}}]'
```

There used to be a way of doing this in Elixir, but it seems to have stopped
Expand Down Expand Up @@ -230,7 +232,8 @@ template: [
:mfa,
:pid,
:otel_trace_id,
:otel_span_id
:otel_span_id,
:otel_trace_flags
]
```

Expand Down

0 comments on commit c52b2a7

Please sign in to comment.