forked from opentelemetry-beam/opentelemetry_ecto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
55 lines (48 loc) · 1.36 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
defmodule OpentelemetryEcto.MixProject do
use Mix.Project
def project do
[
app: :opentelemetry_ecto,
description: description(),
version: "1.0.0-rc.1",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
elixirc_paths: elixirc_paths(Mix.env()),
package: package(),
source_url: "https://github.com/opentelemetry-beam/opentelemetry_ecto"
]
end
defp description do
"Trace Ecto queries with OpenTelemetry."
end
defp package do
[
licenses: ["Apache-2"],
links: %{
"GitHub" => "https://github.com/opentelemetry-beam/opentelemetry_ecto",
"OpenTelemetry Erlang" => "https://github.com/open-telemetry/opentelemetry-erlang",
"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
[
{:telemetry, "~> 0.4.2"},
{:opentelemetry_api, "~> 1.0.0-rc"},
{:opentelemetry, "~> 1.0.0-rc"},
{:ex_doc, "~> 0.24.0", only: [:dev], runtime: false},
{:ecto_sql, ">= 3.0.0", only: [:test]},
{:postgrex, ">= 0.15.0", only: [:test]}
]
end
end