update to appsignal 2.0
This commit is contained in:
parent
49b74c189b
commit
a276eccba4
|
@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Update dependencies
|
- Update dependencies
|
||||||
|
- Update to Elixir 1.10
|
||||||
|
|
||||||
### Deprecated
|
### Deprecated
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM elixir:1.9.0-alpine as build
|
FROM elixir:1.10-alpine as build
|
||||||
|
|
||||||
# install build dependencies
|
# install build dependencies
|
||||||
RUN apk add --update git build-base
|
RUN apk add --update git build-base
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
|
|
||||||
- This project requires Elixir >= 1.9.
|
- This project requires Elixir >= 1.10.
|
||||||
- Run with `SKIP_CRAWL=true` to just run the server (useful for working on the API without also crawling)
|
- Run with `SKIP_CRAWL=true` to just run the server (useful for working on the API without also crawling)
|
||||||
- This project is automatically scanned for potential vulnerabilities with [Sobelow](https://sobelow.io/).
|
- This project is automatically scanned for potential vulnerabilities with [Sobelow](https://sobelow.io/).
|
||||||
|
|
||||||
|
|
|
@ -15,8 +15,7 @@ config :backend, BackendWeb.Endpoint,
|
||||||
url: [host: "localhost"],
|
url: [host: "localhost"],
|
||||||
secret_key_base: "XL4NKGBN9lZMrQbMEI1KJOlwAt8S7younVJl90TdAgzmwyapr3g7BRYSNYvX0sZ9",
|
secret_key_base: "XL4NKGBN9lZMrQbMEI1KJOlwAt8S7younVJl90TdAgzmwyapr3g7BRYSNYvX0sZ9",
|
||||||
render_errors: [view: BackendWeb.ErrorView, accepts: ~w(json)],
|
render_errors: [view: BackendWeb.ErrorView, accepts: ~w(json)],
|
||||||
pubsub: [name: Backend.PubSub, adapter: Phoenix.PubSub.PG2],
|
pubsub: [name: Backend.PubSub, adapter: Phoenix.PubSub.PG2]
|
||||||
instrumenters: [Appsignal.Phoenix.Instrumenter]
|
|
||||||
|
|
||||||
config :backend, Backend.Repo, queue_target: 5000
|
config :backend, Backend.Repo, queue_target: 5000
|
||||||
|
|
||||||
|
|
|
@ -7,13 +7,6 @@ defmodule Backend.Application do
|
||||||
import Backend.Util
|
import Backend.Util
|
||||||
|
|
||||||
def start(_type, _args) do
|
def start(_type, _args) do
|
||||||
:telemetry.attach(
|
|
||||||
"appsignal-ecto",
|
|
||||||
[:backend, :repo, :query],
|
|
||||||
&Appsignal.Ecto.handle_event/4,
|
|
||||||
nil
|
|
||||||
)
|
|
||||||
|
|
||||||
crawl_worker_count = get_config(:crawl_workers)
|
crawl_worker_count = get_config(:crawl_workers)
|
||||||
|
|
||||||
children = [
|
children = [
|
||||||
|
|
|
@ -33,6 +33,8 @@ defmodule BackendWeb do
|
||||||
root: "lib/backend_web/templates",
|
root: "lib/backend_web/templates",
|
||||||
namespace: BackendWeb
|
namespace: BackendWeb
|
||||||
|
|
||||||
|
use Appsignal.Phoenix.View
|
||||||
|
|
||||||
# Import convenience functions from controllers
|
# Import convenience functions from controllers
|
||||||
import Phoenix.Controller, only: [get_flash: 1, get_flash: 2, view_module: 1]
|
import Phoenix.Controller, only: [get_flash: 1, get_flash: 2, view_module: 1]
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,7 @@ defmodule Backend.MixProject do
|
||||||
{:swoosh, "~> 0.23.3"},
|
{:swoosh, "~> 0.23.3"},
|
||||||
{:ex_twilio, "~> 0.7.0"},
|
{:ex_twilio, "~> 0.7.0"},
|
||||||
{:elasticsearch, "~> 1.0"},
|
{:elasticsearch, "~> 1.0"},
|
||||||
{:appsignal, "~> 1.10.1"},
|
{:appsignal_phoenix, "~> 2.0.0-beta.1"},
|
||||||
{:credo, "~> 1.1", only: [:dev, :test], runtime: false},
|
{:credo, "~> 1.1", only: [:dev, :test], runtime: false},
|
||||||
{:nebulex, "~> 1.1"},
|
{:nebulex, "~> 1.1"},
|
||||||
{:hunter, "~> 0.5.1"},
|
{:hunter, "~> 0.5.1"},
|
||||||
|
|
Loading…
Reference in a new issue