Elixir docs for the Add Context section don't match how the library works, or the library is out of date
Issue
This an issue with:
Platform/SDK documentation for Elixir, specifically the Add Context section.
Description
-
The documentation mentions in the Structured Content section to use the
set_contextfunction. However, that function is private in the Sentry lib and can't be called directly in my code. -
The Structured Content section is missing a code example.
-
Since I couldn't use
set_contextdirectly, I chose to useset_extra_contextinstead. However, the Additional Data section of the documentation says:Additional Data is deprecated in favor of structured contexts and should be avoided when possible.
The
set_extra_contextfunction is not marked as deprecated in the code. -
The Additional Data section refers to the
set_extra_contextfunction asset_extra, which is incorrect.
Suggested Solution
Either the documentation should be updated to match how the Elixir library seems intended to be used or the Elixir library should be updated to match how the other language libraries work.
Thanks @JayAndCatchFire, routing to @getsentry/team-webplatform for triage.
@mitchellhenke would you mind having a look at this? Thanks!
How does this work again? I'm not seeing extra information show up in Sentry.