-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
mix.exs
74 lines (67 loc) · 2.13 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
defmodule OpenTelemetryDecorator.MixProject do
use Mix.Project
@version "1.5.9"
@github_page "https://github.com/marcdel/open_telemetry_decorator"
def project do
[
app: :open_telemetry_decorator,
version: @version,
name: "OpenTelemetryDecorator",
description: "A function decorator for OpenTelemetry traces",
homepage_url: @github_page,
elixir: "~> 1.14",
elixirc_paths: elixirc_paths(Mix.env()),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [coveralls: :test, "coveralls.html": :test, "coveralls.json": :test],
start_permanent: Mix.env() == :prod,
consolidate_protocols: Mix.env() == :prod,
package: package(),
docs: docs(),
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:decorator, "~> 1.4"},
{:dialyxir, "~> 1.2", only: :dev, runtime: false},
{:ex_doc, "~> 0.31", only: :dev, runtime: false},
{:excoveralls, "~> 0.18.0", only: :test, runtime: false},
{:opentelemetry_exporter, "~> 1.8", only: :test},
{:opentelemetry_api, "~> 1.4"},
{:opentelemetry, "~> 1.5", only: :test, runtime: false},
{:o11y, "~> 0.2"}
]
end
defp docs do
[
api_reference: false,
authors: ["Marc Delagrammatikas"],
canonical: "http://hexdocs.pm/open_telemetry_decorator",
main: "OpenTelemetryDecorator",
source_ref: "v#{@version}"
]
end
defp package do
[
files: ~w(mix.exs README.md lib),
licenses: ["Apache 2.0"],
links: %{
"GitHub" => @github_page,
"marcdel.com" => "https://www.marcdel.com",
"OpenTelemetry Erlang SDK" => "https://github.com/open-telemetry/opentelemetry-erlang"
},
maintainers: ["Marc Delagrammatikas"]
]
end
end