Skip to content

Commit

Permalink
mix format
Browse files Browse the repository at this point in the history
  • Loading branch information
Cantido committed Mar 7, 2023
1 parent 9b27f99 commit 6d4809c
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions apps/opentelemetry_api/lib/open_telemetry/tracer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,13 @@ defmodule OpenTelemetry.Tracer do
code_attrs = code_attributes() |> Macro.escape()
thread_id_key = Conventions.thread_id()

quote bind_quoted: [name: name, start_opts: opts, code_attrs: code_attrs, thread_id_key: thread_id_key] do
code_attrs =
Map.put(code_attrs, thread_id_key, :erlang.system_info(:scheduler_id))
quote bind_quoted: [
name: name,
start_opts: opts,
code_attrs: code_attrs,
thread_id_key: thread_id_key
] do
code_attrs = Map.put(code_attrs, thread_id_key, :erlang.system_info(:scheduler_id))

start_opts =
Map.new(start_opts)
Expand All @@ -70,9 +74,14 @@ defmodule OpenTelemetry.Tracer do
code_attrs = code_attributes() |> Macro.escape()
thread_id_key = Conventions.thread_id()

quote bind_quoted: [ctx: ctx, name: name, start_opts: opts, code_attrs: code_attrs, thread_id_key: thread_id_key] do
code_attrs =
Map.put(code_attrs, thread_id_key, :erlang.system_info(:scheduler_id))
quote bind_quoted: [
ctx: ctx,
name: name,
start_opts: opts,
code_attrs: code_attrs,
thread_id_key: thread_id_key
] do
code_attrs = Map.put(code_attrs, thread_id_key, :erlang.system_info(:scheduler_id))

start_opts =
Map.new(start_opts)
Expand Down

0 comments on commit 6d4809c

Please sign in to comment.