From a0e3331938c88b190de01c3e1e7aa651cbdc5c6e Mon Sep 17 00:00:00 2001 From: Anthony Shull Date: Tue, 21 May 2024 13:58:10 -0500 Subject: [PATCH] upgrade to latest and add finch requirements (#2071) --- lib/dotcom/application.ex | 1 + lib/dotcom/cache/telemetry.ex | 1 + lib/dotcom/telemetry.ex | 1 + lib/dotcom_web/telemetry.ex | 1 + lib/req/telemetry.ex | 1 + mix.exs | 2 +- mix.lock | 2 +- 7 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/dotcom/application.ex b/lib/dotcom/application.ex index 07b829afcb..d25c7ae00a 100644 --- a/lib/dotcom/application.ex +++ b/lib/dotcom/application.ex @@ -30,6 +30,7 @@ defmodule Dotcom.Application do ] ++ if Application.get_env(:dotcom, :env) != :test do [ + {Finch, name: Telemetry.Finch}, {Dotcom.Telemetry, []}, {Dotcom.Cache.Telemetry, []}, {DotcomWeb.Telemetry, []}, diff --git a/lib/dotcom/cache/telemetry.ex b/lib/dotcom/cache/telemetry.ex index 9e296d1211..fd16889998 100644 --- a/lib/dotcom/cache/telemetry.ex +++ b/lib/dotcom/cache/telemetry.ex @@ -20,6 +20,7 @@ defmodule Dotcom.Cache.Telemetry do { TelemetryMetricsSplunk, [ + finch: Telemetry.Finch, metrics: metrics(), token: telemetry_metrics_splunk_config[:token], url: telemetry_metrics_splunk_config[:url] diff --git a/lib/dotcom/telemetry.ex b/lib/dotcom/telemetry.ex index 456a94e914..211ae5b99c 100644 --- a/lib/dotcom/telemetry.ex +++ b/lib/dotcom/telemetry.ex @@ -25,6 +25,7 @@ defmodule Dotcom.Telemetry do { TelemetryMetricsSplunk, [ + finch: Telemetry.Finch, metrics: metrics(), token: telemetry_metrics_splunk_config[:token], url: telemetry_metrics_splunk_config[:url] diff --git a/lib/dotcom_web/telemetry.ex b/lib/dotcom_web/telemetry.ex index ff640e5af8..807ec71865 100644 --- a/lib/dotcom_web/telemetry.ex +++ b/lib/dotcom_web/telemetry.ex @@ -25,6 +25,7 @@ defmodule DotcomWeb.Telemetry do { TelemetryMetricsSplunk, [ + finch: Telemetry.Finch, metrics: metrics(), token: telemetry_metrics_splunk_config[:token], url: telemetry_metrics_splunk_config[:url] diff --git a/lib/req/telemetry.ex b/lib/req/telemetry.ex index b18a2fa2bf..f36dc1a32c 100644 --- a/lib/req/telemetry.ex +++ b/lib/req/telemetry.ex @@ -25,6 +25,7 @@ defmodule Req.Telemetry do { TelemetryMetricsSplunk, [ + finch: Telemetry.Finch, metrics: metrics(), token: telemetry_metrics_splunk_config[:token], url: telemetry_metrics_splunk_config[:url] diff --git a/mix.exs b/mix.exs index 30ab90399f..3235ca1150 100644 --- a/mix.exs +++ b/mix.exs @@ -143,7 +143,7 @@ defmodule DotCom.Mixfile do {:sweet_xml, "0.7.4", only: [:prod, :dev]}, {:telemetry, "1.2.1", override: true}, {:telemetry_metrics, "1.0.0", override: true}, - {:telemetry_metrics_splunk, "0.0.2-alpha"}, + {:telemetry_metrics_splunk, "0.0.4-alpha"}, {:telemetry_poller, "1.1.0"}, {:telemetry_test, "0.1.2", only: [:test]}, # latest version is 3.7.11; cannot upgrade because tests fail diff --git a/mix.lock b/mix.lock index 5dfa9eb6ef..099867d839 100644 --- a/mix.lock +++ b/mix.lock @@ -96,7 +96,7 @@ "sweet_xml": {:hex, :sweet_xml, "0.7.4", "a8b7e1ce7ecd775c7e8a65d501bc2cd933bff3a9c41ab763f5105688ef485d08", [:mix], [], "hexpm", "e7c4b0bdbf460c928234951def54fe87edf1a170f6896675443279e2dbeba167"}, "telemetry": {:hex, :telemetry, "1.2.1", "68fdfe8d8f05a8428483a97d7aab2f268aaff24b49e0f599faa091f1d4e7f61c", [:rebar3], [], "hexpm", "dad9ce9d8effc621708f99eac538ef1cbe05d6a874dd741de2e689c47feafed5"}, "telemetry_metrics": {:hex, :telemetry_metrics, "1.0.0", "29f5f84991ca98b8eb02fc208b2e6de7c95f8bb2294ef244a176675adc7775df", [:mix], [{:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "f23713b3847286a534e005126d4c959ebcca68ae9582118ce436b521d1d47d5d"}, - "telemetry_metrics_splunk": {:hex, :telemetry_metrics_splunk, "0.0.2-alpha", "f0a25d582b4315b5461840a55c77f2b0ad625c8afceaec56ce0b198f6c87f741", [:mix], [{:jason, "1.4.1", [hex: :jason, repo: "hexpm", optional: false]}, {:recase, "0.7.0", [hex: :recase, repo: "hexpm", optional: false]}, {:telemetry, "1.2.1", [hex: :telemetry, repo: "hexpm", optional: false]}, {:telemetry_metrics, "1.0.0", [hex: :telemetry_metrics, repo: "hexpm", optional: false]}], "hexpm", "c6ea80ee987a19df3c5d3bb87a5b94c3acf4a8d4df778e0f3ede2987426eba8f"}, + "telemetry_metrics_splunk": {:hex, :telemetry_metrics_splunk, "0.0.4-alpha", "8573914ab290b5a7ea306e5511af9eafa0dd3da3a7390ef30bd742d12f12dbd5", [:mix], [{:finch, "0.18.0", [hex: :finch, repo: "hexpm", optional: false]}, {:jason, "1.4.1", [hex: :jason, repo: "hexpm", optional: false]}, {:nimble_options, "1.1.0", [hex: :nimble_options, repo: "hexpm", optional: false]}, {:recase, "0.7.0", [hex: :recase, repo: "hexpm", optional: false]}, {:telemetry, "1.2.1", [hex: :telemetry, repo: "hexpm", optional: false]}, {:telemetry_metrics, "1.0.0", [hex: :telemetry_metrics, repo: "hexpm", optional: false]}], "hexpm", "25e1502aa6a498566dcc0d52d05752e85fe8af97bb2e2a8f82400c79420bba70"}, "telemetry_poller": {:hex, :telemetry_poller, "1.1.0", "58fa7c216257291caaf8d05678c8d01bd45f4bdbc1286838a28c4bb62ef32999", [:rebar3], [{:telemetry, "~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "9eb9d9cbfd81cbd7cdd24682f8711b6e2b691289a0de6826e58452f28c103c8f"}, "telemetry_test": {:hex, :telemetry_test, "0.1.2", "122d927567c563cf57773105fa8104ae4299718ec2cbdddcf6776562c7488072", [:mix], [{:telemetry, "~> 1.2", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "7bd41a49ecfd33ecd82d2c7edae19a5736f0d2150206d0ee290dcf3885d0e14d"}, "tesla": {:hex, :tesla, "1.9.0", "8c22db6a826e56a087eeb8cdef56889731287f53feeb3f361dec5d4c8efb6f14", [:mix], [{:castore, "~> 0.1 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}, {:exjsx, ">= 3.0.0", [hex: :exjsx, repo: "hexpm", optional: true]}, {:finch, "~> 0.13", [hex: :finch, repo: "hexpm", optional: true]}, {:fuse, "~> 2.4", [hex: :fuse, repo: "hexpm", optional: true]}, {:gun, ">= 1.0.0", [hex: :gun, repo: "hexpm", optional: true]}, {:hackney, "~> 1.6", [hex: :hackney, repo: "hexpm", optional: true]}, {:ibrowse, "4.4.2", [hex: :ibrowse, repo: "hexpm", optional: true]}, {:jason, ">= 1.0.0", [hex: :jason, repo: "hexpm", optional: true]}, {:mime, "~> 1.0 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:mint, "~> 1.0", [hex: :mint, repo: "hexpm", optional: true]}, {:msgpax, "~> 2.3", [hex: :msgpax, repo: "hexpm", optional: true]}, {:poison, ">= 1.0.0", [hex: :poison, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: true]}], "hexpm", "7c240c67e855f7e63e795bf16d6b3f5115a81d1f44b7fe4eadbf656bae0fef8a"},