2022-12-15 00:38:18 +00:00
|
|
|
defmodule OpentelemetryNebulex.MixProject do
|
|
|
|
use Mix.Project
|
|
|
|
|
|
|
|
def project do
|
|
|
|
[
|
|
|
|
app: :opentelemetry_nebulex,
|
|
|
|
description: description(),
|
|
|
|
version: "0.1.0",
|
|
|
|
elixir: "~> 1.11",
|
|
|
|
start_permanent: Mix.env() == :prod,
|
|
|
|
deps: deps(),
|
|
|
|
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_nebulex",
|
|
|
|
docs: [
|
|
|
|
source_url_pattern:
|
|
|
|
"https://github.com/open-telemetry/opentelemetry-erlang-contrib/blob/main/instrumentation/opentelemetry_nebulex/%{path}#L%{line}",
|
|
|
|
main: "OpentelemetryNebulex",
|
|
|
|
extras: ["README.md"]
|
|
|
|
]
|
2022-12-15 00:38:18 +00:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
defp description do
|
|
|
|
"OpenTelemetry tracing for Nebulex"
|
|
|
|
end
|
|
|
|
|
|
|
|
defp package do
|
|
|
|
[
|
|
|
|
files: ~w(lib .formatter.exs mix.exs README* LICENSE* CHANGELOG*),
|
|
|
|
licenses: ["Apache-2.0"],
|
|
|
|
links: %{
|
|
|
|
"GitHub" =>
|
|
|
|
"https://github.com/open-telemetry/opentelemetry-erlang-contrib/tree/main/instrumentation/opentelemetry_nebulex",
|
|
|
|
"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
|
|
|
|
[
|
|
|
|
extra_applications: []
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
defp elixirc_paths(:test), do: ["lib", "test/support"]
|
|
|
|
defp elixirc_paths(_), do: ["lib"]
|
|
|
|
|
|
|
|
defp deps do
|
|
|
|
[
|
|
|
|
{:dialyxir, "~> 1.1", only: [:dev, :test], runtime: false},
|
2024-01-17 18:27:19 +00:00
|
|
|
{:ex_doc, "~> 0.31.0", only: [:dev], runtime: false},
|
2022-12-15 00:38:18 +00:00
|
|
|
{:nebulex, "~> 2.1", only: [:dev, :test]},
|
|
|
|
{:opentelemetry, "~> 1.0", only: [:dev, :test]},
|
|
|
|
{:opentelemetry_api, "~> 1.0"},
|
|
|
|
{:opentelemetry_exporter, "~> 1.0", only: [:dev, :test]},
|
|
|
|
{:opentelemetry_telemetry, "~> 1.0"},
|
|
|
|
{:telemetry, "~> 0.4 or ~> 1.0"}
|
|
|
|
]
|
|
|
|
end
|
|
|
|
end
|