Skip to content

Commit 4975d0c

Browse files
committed
docs
1 parent f06b1ac commit 4975d0c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/sentry/client.ex

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,13 @@ defmodule Sentry.Client do
218218
@hackney_pool_name
219219
end
220220

221+
@doc """
222+
Transform the Event struct into JSON map.
223+
224+
Most Event attributes map directly to JSON map, with stacktrace being the
225+
exception. If the event does not have stacktrace frames, it should not
226+
be included in the JSON body.
227+
"""
221228
def render_event(%Event{} = event) do
222229
map = %{
223230
event_id: event.event_id,

0 commit comments

Comments
 (0)