We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support https://develop.sentry.dev/sdk/client-reports/
If tracing is supported by the time this issue is handled, we would also want to report dropped spans: https://github.com/getsentry/projects/issues/70
The text was updated successfully, but these errors were encountered:
Just talked strategy with @savhappy, notes:
:send_client_reports
Sentry.Envelope.from_client_report/1
type: :client_report
Sentry.Envelope
Sentry.Envelope.item_to_binary/2
A client report should be a struct typed as:
@type client_report() :: %Sentry.ClientReport{ timestamp: timestamp(), discarded_events: %{ optional({type :: atom(), reason :: atom()}) => pos_integer() } } # Example: %ClientReport{ timestamp: ..., discarded_events: %{ {"error", "rate_limiting"} => 3, {"transaction", "queue_overflow"} => 324, {"error", "queue_overflow"} => 1 } }
We don't have {type, reason} tuples in there if the count is 0, which is why it's pos_integer(). We can just add them on the fly:
{type, reason}
0
pos_integer()
def add_discarded_event(client_report, type, reason) do Map.update(client_report.discarded_events, {type, reason}, 1, &(&1 + 1)) end
Sorry, something went wrong.
Closed in #801, thanks @savhappy 💟
savhappy
No branches or pull requests
Support https://develop.sentry.dev/sdk/client-reports/
If tracing is supported by the time this issue is handled, we would also want to report dropped spans:
https://github.com/getsentry/projects/issues/70
The text was updated successfully, but these errors were encountered: