update to appsignal 2.0

This commit is contained in:
Tao Bojlén 2020-10-06 17:46:41 +01:00
parent 49b74c189b
commit a276eccba4
No known key found for this signature in database
GPG key ID: C6EC7AAB905F9E6F
7 changed files with 7 additions and 12 deletions

View file

@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Update dependencies
- Update to Elixir 1.10
### Deprecated

View file

@ -1,4 +1,4 @@
FROM elixir:1.9.0-alpine as build
FROM elixir:1.10-alpine as build
# install build dependencies
RUN apk add --update git build-base

View file

@ -2,7 +2,7 @@
## 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)
- This project is automatically scanned for potential vulnerabilities with [Sobelow](https://sobelow.io/).

View file

@ -15,8 +15,7 @@ config :backend, BackendWeb.Endpoint,
url: [host: "localhost"],
secret_key_base: "XL4NKGBN9lZMrQbMEI1KJOlwAt8S7younVJl90TdAgzmwyapr3g7BRYSNYvX0sZ9",
render_errors: [view: BackendWeb.ErrorView, accepts: ~w(json)],
pubsub: [name: Backend.PubSub, adapter: Phoenix.PubSub.PG2],
instrumenters: [Appsignal.Phoenix.Instrumenter]
pubsub: [name: Backend.PubSub, adapter: Phoenix.PubSub.PG2]
config :backend, Backend.Repo, queue_target: 5000

View file

@ -7,13 +7,6 @@ defmodule Backend.Application do
import Backend.Util
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)
children = [

View file

@ -33,6 +33,8 @@ defmodule BackendWeb do
root: "lib/backend_web/templates",
namespace: BackendWeb
use Appsignal.Phoenix.View
# Import convenience functions from controllers
import Phoenix.Controller, only: [get_flash: 1, get_flash: 2, view_module: 1]

View file

@ -61,7 +61,7 @@ defmodule Backend.MixProject do
{:swoosh, "~> 0.23.3"},
{:ex_twilio, "~> 0.7.0"},
{:elasticsearch, "~> 1.0"},
{:appsignal, "~> 1.10.1"},
{:appsignal_phoenix, "~> 2.0.0-beta.1"},
{:credo, "~> 1.1", only: [:dev, :test], runtime: false},
{:nebulex, "~> 1.1"},
{:hunter, "~> 0.5.1"},