Releases: getsentry/sentry-elixir
13.0.0
New Features ✨
Tests
- Auto-start TelemetryProcessor in setup_sentry by @solnic in #1039
- Automatic await in test helpers by @solnic in #1037
- Add test helpers by @solnic in #1034
Tracing
- First class support for Oban by @solnic in #1020
- Add support for OTel span links by @solnic in #1019
Other
- (metrics) Support for Metrics by @solnic in #1018
- (test) Add assert_sentry_metric/2 assertion helper by @solnic in #1042
- Add strict trace continuation support by @giortzisg in #1016
Bug Fixes 🐛
- (ci) Update validate-pr action to remove draft enforcement by @stephanie-anderson in #1027
- (tests) Proper TP setup for phx process in tests by @solnic in #1041
Internal Changes 🔧
Deps Dev
- Bump vite from 6.4.1 to 6.4.2 in /test_integrations/tracing/svelte_mini by @dependabot in #1032
- Bump picomatch from 4.0.3 to 4.0.4 in /test_integrations/tracing/svelte_mini by @dependabot in #1021
Tests
- More test stability fixes and improvements by @solnic in #1035
- Proper config isolation by @solnic in #1031
Other
- (deps) Bump devalue from 5.6.3 to 5.6.4 in /test_integrations/tracing/svelte_mini by @dependabot in #1017
- (test) Rework Sentry.Test to use Bypass-based HTTP testing by @solnic in #1030
- Update @doc since version to 13.0.0 in test modules by @solnic in #1038
- Update GitHub Actions setup to use latest action versions by @solnic in #1033
- Update validate-pr workflow by @stephanie-anderson in #1028
- Add PR validation workflow by @stephanie-anderson in #1023
12.0.3
New Features ✨
- (agents) Add AGENTS.md by @solnic in #1013
- (logs) Support non-primitives in the attributes by @solnic in #1014
Bug Fixes 🐛
Internal Changes 🔧
Deps Dev
- Bump svelte from 5.53.0 to 5.53.6 in /test_integrations/tracing/svelte_mini by @dependabot in #1006
- Bump rollup from 4.53.5 to 4.59.0 in /test_integrations/tracing/svelte_mini by @dependabot in #1007
12.0.2
12.0.1
12.0.0
Logs & Telemetry Processor
Support for Structured Logs is here! 🎉 To enable:
config :sentry,
# your config...
enable_logs: true # <- add this!Log events are sent to Sentry using the new TelemetryProcessor backend. You can enable it for other types of events via configuration:
config :sentry,
# your config...
enable_logs: true,
telemetry_processor_categories: [:log, :error, :check_in, :transaction] # <- add thisThis will become the default backend eventually, please try it out and report any issues!
You can learn more about the Telemetry Processor in our official documentation.
Related Pull Requests
Other new features
- Support for Distributed Tracing (957)
- Support for LiveView spans captured under single trace root (#977)
- Add
should_report_error_callbackoption toOban.ErrorReporterfor flexible error reporting logic (#832) - Handle HTTP 413 responses for oversized envelopes (#982)
Bug Fixes
-
Wrong app_name used by Igniter in prod.exs (#972)
This requires configuring a custom propagator:
# Configure OpenTelemetry to use Sentry propagator for distributed tracing config :opentelemetry, text_map_propagators: [ :trace_context, :baggage, Sentry.OpenTelemetry.Propagator ]
Various improvements
-
Switch default HTTP client from Hackney to Finch (#897)
-
:source_code_exclude_patternssupport for OTP-28.0 (#965)For people on OTP 28.1
All you need is to use
~r/foo/Einstead of~r/foo/in your config files. For example:config :sentry, enable_source_code_context: true, root_source_code_paths: [File.cwd!()], source_code_exclude_patterns: [~r/_build/E, ~r/deps/E, ~r/priv/E, ~r/test/E]
For people on OTP 28.0
You can convert your regexps for
source_code_exclude_patternsconfig to strings:config :sentry, enable_source_code_context: true, root_source_code_paths: [File.cwd!()], source_code_exclude_patterns: ["/_build/", "/deps/", "/priv/", "/test/"]
11.0.4
11.0.3
11.0.2
11.0.1
11.0.0
This release comes with a beta support for Traces using OpenTelemetry - please test it out and report any issues you find.
New features
-
Beta support for Traces using OpenTelemetry (#902)
To enable Tracing in your Phoenix application, you need to add the following to your
mix.exs:def deps do [ # ... {:sentry, "~> 11.0.0"}, {:opentelemetry, "~> 1.5"}, {:opentelemetry_api, "~> 1.4"}, {:opentelemetry_exporter, "~> 1.0"}, {:opentelemetry_semantic_conventions, "~> 1.27"}, {:opentelemetry_phoenix, "~> 2.0"}, {:opentelemetry_ecto, "~> 1.2"}, # ... ]
And then configure Tracing in Sentry and OpenTelemetry in your
config.exs:config :sentry, # ... traces_sample_rate: 1.0 # any value between 0 and 1.0 enables tracing config :opentelemetry, span_processor: {Sentry.OpenTelemetry.SpanProcessor, []} config :opentelemetry, sampler: {Sentry.OpenTelemetry.Sampler, [drop: []]}
-
Add installer (based on Igniter) (#876)
Various improvements
- Tweak credit card regex handling for OTP-28 (#898)