forked from withbelay/open_telemetry_decorator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
66 lines (60 loc) · 1.81 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
defmodule OpenTelemetryDecorator.MixProject do
use Mix.Project
@version "1.3.1"
@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.10",
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [coveralls: :test, "coveralls.html": :test, "coveralls.json": :test],
start_permanent: 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
# 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.29.4", only: :dev, runtime: false},
{:excoveralls, "~> 0.16.0", only: :test, runtime: false},
{:opentelemetry_api, "~> 1.2"},
{:opentelemetry_exporter, "~> 1.4", only: :test}
]
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