2022-01-04 21:39:19 +00:00
|
|
|
defmodule OpentelemetryRedix.MixProject do
|
|
|
|
use Mix.Project
|
|
|
|
|
|
|
|
def project do
|
|
|
|
[
|
|
|
|
app: :opentelemetry_redix,
|
|
|
|
description: description(),
|
2022-05-10 20:05:35 +00:00
|
|
|
version: "0.1.1",
|
2022-01-04 21:39:19 +00:00
|
|
|
elixir: "~> 1.10",
|
|
|
|
start_permanent: Mix.env() == :prod,
|
|
|
|
deps: deps(),
|
|
|
|
elixirc_paths: elixirc_paths(Mix.env()),
|
|
|
|
package: package(),
|
|
|
|
source_url:
|
|
|
|
"https://github.com/open-telemetry/opentelemetry-erlang-contrib/tree/main/instrumentation/opentelemetry_redix"
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
defp description do
|
|
|
|
"Trace Redix queries with OpenTelemetry."
|
|
|
|
end
|
|
|
|
|
|
|
|
defp package do
|
|
|
|
[
|
|
|
|
files: ~w(lib .formatter.exs mix.exs README* LICENSE* CHANGELOG*),
|
2022-05-10 20:05:35 +00:00
|
|
|
licenses: ["Apache-2.0"],
|
2022-01-04 21:39:19 +00:00
|
|
|
links: %{
|
|
|
|
"GitHub" =>
|
|
|
|
"https://github.com/open-telemetry/opentelemetry-erlang-contrib/tree/main/instrumentation/opentelemetry_redix",
|
|
|
|
"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
|
|
|
|
[
|
|
|
|
mod: {OpentelemetryRedix.Application, []},
|
|
|
|
extra_applications: [:logger]
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
defp elixirc_paths(:test), do: ["lib", "test/support"]
|
|
|
|
defp elixirc_paths(_), do: ["lib"]
|
|
|
|
|
|
|
|
defp deps do
|
|
|
|
[
|
2022-03-31 17:23:32 +00:00
|
|
|
{:dialyxir, "~> 1.1", only: [:dev, :test], runtime: false},
|
2022-11-16 00:48:50 +00:00
|
|
|
{:ex_doc, "~> 0.29.0", only: [:dev], runtime: false},
|
2022-03-31 17:23:32 +00:00
|
|
|
{:opentelemetry, "~> 1.0", only: [:dev, :test]},
|
|
|
|
{:opentelemetry_api, "~> 1.0"},
|
2023-01-06 20:46:06 +00:00
|
|
|
{:opentelemetry_semantic_conventions, "~> 0.2"},
|
2022-03-31 17:23:32 +00:00
|
|
|
{:opentelemetry_exporter, "~> 1.0", only: [:dev, :test]},
|
2022-01-04 21:39:19 +00:00
|
|
|
{:redix, "~> 1.0", only: [:dev, :test]},
|
2022-04-13 15:57:45 +00:00
|
|
|
{:telemetry, "~> 0.4 or ~> 1.0"}
|
2022-01-04 21:39:19 +00:00
|
|
|
]
|
|
|
|
end
|
|
|
|
end
|