mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
Bumps [sentry](https://github.com/getsentry/sentry-elixir) from 10.10.0 to 11.0.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/getsentry/sentry-elixir/releases">sentry's releases</a>.</em></p> <blockquote> <h2>11.0.2</h2> <h3>Bug fixes</h3> <ul> <li>Deeply nested spans are handled now when building up traces in <code>SpanProcessor</code> (<a href="https://redirect.github.com/getsentry/sentry-elixir/pull/924">#924</a>)</li> </ul> <h4>Various improvements</h4> <ul> <li>Span's attributes no longer include <code>db.url: "ecto:"</code> entries as they are now filtered out (<a href="https://redirect.github.com/getsentry/sentry-elixir/pull/925">#925</a>)</li> </ul> <h2>11.0.1</h2> <h4>Various improvements</h4> <ul> <li><code>Sentry.OpenTelemetry.Sampler</code> now works with an empty config (<a href="https://redirect.github.com/getsentry/sentry-elixir/pull/915">#915</a>)</li> </ul> <h2>11.0.0</h2> <p>This release comes with a beta support for Traces using OpenTelemetry - please test it out and report any issues you find.</p> <h3>New features</h3> <ul> <li> <p>Beta support for Traces using OpenTelemetry (<a href="https://redirect.github.com/getsentry/sentry-elixir/pull/902">#902</a>)</p> <p>To enable Tracing in your Phoenix application, you need to add the following to your <code>mix.exs</code>:</p> <pre lang="elixir"><code>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"}, # ... ] </code></pre> <p>And then configure Tracing in Sentry and OpenTelemetry in your <code>config.exs</code>:</p> <pre lang="elixir"><code>config :sentry, # ... traces_sample_rate: 1.0 # any value between 0 and 1.0 enables tracing <p>config :opentelemetry, span_processor: {Sentry.OpenTelemetry.SpanProcessor, []} config :opentelemetry, sampler: {Sentry.OpenTelemetry.Sampler, [drop: []]} </code></pre></p> </li> <li> <p>Add installer (based on Igniter) (<a href="https://redirect.github.com/getsentry/sentry-elixir/pull/876">#876</a>)</p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/getsentry/sentry-elixir/blob/master/CHANGELOG.md">sentry's changelog</a>.</em></p> <blockquote> <h2>11.0.2</h2> <h3>Bug fixes</h3> <ul> <li>Deeply nested spans are handled now when building up traces in <code>SpanProcessor</code> (<a href="https://redirect.github.com/getsentry/sentry-elixir/pull/924">#924</a>)</li> </ul> <h4>Various improvements</h4> <ul> <li>Span's attributes no longer include <code>db.url: "ecto:"</code> entries as they are now filtered out (<a href="https://redirect.github.com/getsentry/sentry-elixir/pull/925">#925</a>)</li> </ul> <h2>11.0.1</h2> <h4>Various improvements</h4> <ul> <li><code>Sentry.OpenTelemetry.Sampler</code> now works with an empty config (<a href="https://redirect.github.com/getsentry/sentry-elixir/pull/915">#915</a>)</li> </ul> <h2>11.0.0</h2> <p>This release comes with a beta support for Traces using OpenTelemetry - please test it out and report any issues you find.</p> <h3>New features</h3> <ul> <li> <p>Beta support for Traces using OpenTelemetry (<a href="https://redirect.github.com/getsentry/sentry-elixir/pull/902">#902</a>)</p> <p>To enable Tracing in your Phoenix application, you need to add the following to your <code>mix.exs</code>:</p> <pre lang="elixir"><code>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"}, # ... ] </code></pre> <p>And then configure Tracing in Sentry and OpenTelemetry in your <code>config.exs</code>:</p> <pre lang="elixir"><code>config :sentry, # ... traces_sample_rate: 1.0 # any value between 0 and 1.0 enables tracing <p>config :opentelemetry, span_processor: {Sentry.OpenTelemetry.SpanProcessor, []} config :opentelemetry, sampler: {Sentry.OpenTelemetry.Sampler, []} </code></pre></p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="b142174df9"><code>b142174</code></a> release: 11.0.2</li> <li><a href="f43055b8ca"><code>f43055b</code></a> Update CHANGELOG for 11.0.2 (<a href="https://redirect.github.com/getsentry/sentry-elixir/issues/926">#926</a>)</li> <li><a href="ee512d3bf6"><code>ee512d3</code></a> Filter out empty db.url from span's attributes (<a href="https://redirect.github.com/getsentry/sentry-elixir/issues/925">#925</a>)</li> <li><a href="6809aaa68c"><code>6809aaa</code></a> Fix handling of spans at 2+ levels (<a href="https://redirect.github.com/getsentry/sentry-elixir/issues/924">#924</a>)</li> <li><a href="b7e16798d3"><code>b7e1679</code></a> Improve event callback docs (<a href="https://redirect.github.com/getsentry/sentry-elixir/issues/922">#922</a>)</li> <li><a href="97d0382418"><code>97d0382</code></a> Merge branch 'release/11.0.1'</li> <li><a href="738fc763cd"><code>738fc76</code></a> release: 11.0.1</li> <li><a href="ab58c0ef6b"><code>ab58c0e</code></a> Update CHANGELOG (<a href="https://redirect.github.com/getsentry/sentry-elixir/issues/917">#917</a>)</li> <li><a href="028ce18841"><code>028ce18</code></a> handle nil drop list (<a href="https://redirect.github.com/getsentry/sentry-elixir/issues/915">#915</a>)</li> <li><a href="5850c73a96"><code>5850c73</code></a> Merge branch 'release/11.0.0'</li> <li>Additional commits viewable in <a href="https://github.com/getsentry/sentry-elixir/compare/10.10.0...11.0.2">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
114 lines
3.1 KiB
Elixir
114 lines
3.1 KiB
Elixir
defmodule Firezone.MixProject do
|
|
use Mix.Project
|
|
|
|
def project do
|
|
[
|
|
name: :firezone,
|
|
apps_path: "apps",
|
|
version: version(),
|
|
start_permanent: Mix.env() == :prod,
|
|
test_coverage: [tool: ExCoveralls],
|
|
preferred_cli_env: [
|
|
coveralls: :test,
|
|
"coveralls.detail": :test,
|
|
"coveralls.post": :test,
|
|
"coveralls.html": :test
|
|
],
|
|
docs: [
|
|
logo: "apps/web/assets/static/images/logo.svg",
|
|
extras: ["docs/README.md", "docs/SECURITY.md", "docs/CONTRIBUTING.md"]
|
|
],
|
|
deps: deps(),
|
|
dialyzer: [
|
|
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
|
|
],
|
|
aliases: aliases(),
|
|
releases: releases()
|
|
]
|
|
end
|
|
|
|
# Dependencies listed here are available only for this
|
|
# project and cannot be accessed from applications inside
|
|
# the apps folder.
|
|
#
|
|
# Run "mix help deps" for examples and options.
|
|
defp deps do
|
|
[
|
|
# Shared deps
|
|
{:jason, "~> 1.2"},
|
|
{:sentry, "~> 11.0"},
|
|
{:hackney, "~> 1.19"},
|
|
{:logger_json, "~> 7.0"},
|
|
|
|
# Shared test deps
|
|
{:credo, "~> 1.5", only: [:dev, :test], runtime: false},
|
|
{:dialyxir, "~> 1.1", only: [:dev, :test], runtime: false},
|
|
{:junit_formatter, "~> 3.3", only: [:test]},
|
|
{:mix_audit, "~> 2.1", only: [:dev, :test]},
|
|
{:sobelow, "~> 0.12", only: [:dev, :test]},
|
|
|
|
# Formatter doesn't track dependencies of children applications
|
|
{:phoenix, "~> 1.7.0"},
|
|
{:phoenix_live_view, "~> 1.0.0-rc.0"},
|
|
{:floki, "~> 0.37.0"}
|
|
]
|
|
end
|
|
|
|
defp aliases do
|
|
migration_args =
|
|
"--migrations-path apps/domain/priv/repo/migrations --migrations-path apps/domain/priv/repo/manual_migrations"
|
|
|
|
[
|
|
"ecto.migrate": ["ecto.migrate #{migration_args}"],
|
|
"ecto.rollback": ["ecto.rollback #{migration_args}"],
|
|
"ecto.seed": [
|
|
"ecto.create",
|
|
"ecto.migrate #{migration_args}",
|
|
"run apps/domain/priv/repo/seeds.exs"
|
|
],
|
|
"ecto.setup": ["ecto.create", "ecto.migrate"],
|
|
"ecto.reset": ["ecto.drop", "ecto.setup"],
|
|
sobelow: ["cmd mix sobelow"],
|
|
test: ["ecto.create --quiet", "ecto.migrate", "test"],
|
|
start: ["compile --no-validate-compile-env", "phx.server", "run --no-halt"]
|
|
]
|
|
end
|
|
|
|
defp releases do
|
|
[
|
|
domain: [
|
|
include_executables_for: [:unix],
|
|
validate_compile_env: true,
|
|
applications: [
|
|
domain: :permanent,
|
|
opentelemetry_exporter: :permanent,
|
|
opentelemetry: :temporary
|
|
]
|
|
],
|
|
web: [
|
|
include_executables_for: [:unix],
|
|
validate_compile_env: true,
|
|
applications: [
|
|
web: :permanent,
|
|
opentelemetry_exporter: :permanent,
|
|
opentelemetry: :temporary
|
|
]
|
|
],
|
|
api: [
|
|
include_executables_for: [:unix],
|
|
validate_compile_env: true,
|
|
applications: [
|
|
api: :permanent,
|
|
opentelemetry_exporter: :permanent,
|
|
opentelemetry: :temporary
|
|
]
|
|
]
|
|
]
|
|
end
|
|
|
|
defp version do
|
|
sha = System.get_env("GIT_SHA", "dev") |> String.trim()
|
|
"0.1.0+#{sha}"
|
|
end
|
|
end
|