Skip to content

Commit

Permalink
fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Aug 30, 2018
1 parent 0fde9f7 commit 6998f3e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/spandex_datadog/api_server.ex
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,16 @@ defmodule SpandexDatadog.ApiServer do
:ok
end

@deprecated "Please use format/3 instead"
@spec format(Trace.t()) :: map()
def format(%Trace{spans: spans, priority: priority, baggage: baggage}) do
Enum.map(spans, fn span -> format(span, priority, baggage) end)
end

@deprecated "Please use format/3 instead"
@spec format(Span.t()) :: map()
def format(%Span{} = span), do: format(span, 1, [])

@spec format(Span.t(), integer(), Keyword.t()) :: map()
def format(%Span{} = span, priority, _baggage) do
%{
Expand All @@ -224,10 +229,6 @@ defmodule SpandexDatadog.ApiServer do
}
end

@deprecated "Please use format/3 instead"
@spec format(Span.t()) :: map()
def format(%Span{} = span), do: format(span, 1, [])

# Private Helpers

@spec meta(Span.t()) :: map
Expand Down

0 comments on commit 6998f3e

Please sign in to comment.