2021-10-08 21:38:18 +00:00
|
|
|
defmodule OpentelemetryEcto.MixProject do
|
|
|
|
use Mix.Project
|
|
|
|
|
|
|
|
def project do
|
|
|
|
[
|
|
|
|
app: :opentelemetry_ecto,
|
|
|
|
description: description(),
|
2023-05-23 11:04:01 +00:00
|
|
|
version: "1.1.1",
|
2021-10-08 21:38:18 +00:00
|
|
|
elixir: "~> 1.10",
|
|
|
|
start_permanent: Mix.env() == :prod,
|
|
|
|
deps: deps(),
|
|
|
|
aliases: aliases(),
|
|
|
|
elixirc_paths: elixirc_paths(Mix.env()),
|
|
|
|
package: package(),
|
|
|
|
source_url:
|
2023-04-30 18:10:03 +00:00
|
|
|
"https://github.com/open-telemetry/opentelemetry-erlang-contrib/tree/main/instrumentation/opentelemetry_ecto",
|
|
|
|
docs: [
|
|
|
|
source_url_pattern:
|
|
|
|
"https://github.com/open-telemetry/opentelemetry-erlang-contrib/blob/main/instrumentation/opentelemetry_ecto/%{path}#L%{line}",
|
|
|
|
main: "OpentelemetryEcto",
|
|
|
|
extras: ["README.md"]
|
|
|
|
]
|
2021-10-08 21:38:18 +00:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
defp description do
|
|
|
|
"Trace Ecto queries with OpenTelemetry."
|
|
|
|
end
|
|
|
|
|
|
|
|
defp package do
|
|
|
|
[
|
|
|
|
files: ~w(lib .formatter.exs mix.exs README* LICENSE* CHANGELOG*),
|
2021-12-28 23:39:06 +00:00
|
|
|
licenses: ["Apache-2.0"],
|
2021-10-08 21:38:18 +00:00
|
|
|
links: %{
|
|
|
|
"GitHub" =>
|
|
|
|
"https://github.com/open-telemetry/opentelemetry-erlang-contrib/tree/main/instrumentation/opentelemetry_ecto",
|
|
|
|
"OpenTelemetry Erlang" => "https://github.com/open-telemetry/opentelemetry-erlang",
|
|
|
|
"OpenTelemetry Erlang Contrib" => "https://github.com/open-telemetry/opentelemetry-erlang-contrib",
|
|
|
|
"OpenTelemetry.io" => "https://opentelemetry.io"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
def application do
|
|
|
|
[]
|
|
|
|
end
|
|
|
|
|
|
|
|
defp elixirc_paths(:test), do: ["lib", "test/support"]
|
|
|
|
defp elixirc_paths(_), do: ["lib"]
|
|
|
|
|
|
|
|
defp aliases() do
|
|
|
|
[test: ["ecto.drop -q", "ecto.create -q", "ecto.migrate --quiet", "test"]]
|
|
|
|
end
|
|
|
|
|
|
|
|
defp deps do
|
|
|
|
[
|
2022-04-13 15:57:45 +00:00
|
|
|
{:telemetry, "~> 0.4 or ~> 1.0"},
|
2022-01-05 01:58:06 +00:00
|
|
|
{:opentelemetry_api, "~> 1.0"},
|
|
|
|
{:opentelemetry, "~> 1.0", only: [:dev, :test]},
|
|
|
|
{:opentelemetry_exporter, "~> 1.0", only: [:dev, :test]},
|
2024-01-17 18:27:19 +00:00
|
|
|
{:ex_doc, "~> 0.31", only: [:dev], runtime: false},
|
2021-10-08 21:38:18 +00:00
|
|
|
{:ecto_sql, ">= 3.0.0", only: [:dev, :test]},
|
2021-12-28 23:39:06 +00:00
|
|
|
{:postgrex, ">= 0.15.0", only: [:dev, :test]},
|
2022-03-24 20:19:24 +00:00
|
|
|
{:dialyxir, "~> 1.1", only: [:dev, :test], runtime: false},
|
2022-11-16 00:48:50 +00:00
|
|
|
{:opentelemetry_process_propagator, "~> 0.2"}
|
2021-10-08 21:38:18 +00:00
|
|
|
]
|
|
|
|
end
|
|
|
|
end
|