-
Notifications
You must be signed in to change notification settings - Fork 125
/
mix.exs
95 lines (86 loc) · 2.74 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
defmodule OpentelemetryBandit.MixProject do
use Mix.Project
@version "0.2.0"
def project do
[
app: :opentelemetry_bandit,
version: @version,
elixir: "~> 1.14",
aliases: aliases(),
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
elixirc_paths: elixirc_path(Mix.env()),
dialyzer: [
plt_add_apps: [:ex_unit, :mix],
plt_core_path: "priv/plts",
plt_local_path: "priv/plts"
],
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"coveralls.cobertura": :test
],
docs: [
main: "OpentelemetryBandit",
source_url_pattern:
"https://github.com/open-telemetry/opentelemetry-erlang-contrib/blob/main/instrumentation/opentelemetry_bandit/%{path}#L%{line}",
extras: []
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
defp description do
"""
Telemetry handler that creates Opentelemetry spans from Bandit events.
"""
end
defp package do
[
files: ~w(lib .formatter.exs mix.exs LICENSE* README* CHANGELOG*),
maintainers: ["Artem Solomatin", "Bryan Naegele"],
licenses: ["Apache-2.0"],
links: %{
"GitHub" =>
"https://github.com/open-telemetry/opentelemetry-erlang-contrib/tree/main/instrumentation/opentelemetry_bandit",
"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
defp elixirc_path(:test), do: ["lib/", "test/support"]
defp elixirc_path(_), do: ["lib/"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:nimble_options, "~> 1.1"},
{:opentelemetry_api, "~> 1.3"},
{:opentelemetry_semantic_conventions, "~> 1.27"},
{:otel_http, "~> 0.2"},
{:plug, ">= 1.15.0"},
{:telemetry, "~> 1.2"},
# dev dependencies
{:ex_doc, "~> 0.36", only: :dev, runtime: false},
{:excoveralls, "~> 0.18", only: :test},
{:bandit, "~> 1.5", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:opentelemetry, "~> 1.4", only: [:dev, :test]},
{:opentelemetry_exporter, "~> 1.7", only: [:dev, :test]},
{:req, "~> 0.5", only: [:dev, :test]}
]
end
defp aliases do
["test.coverage": ["coveralls.cobertura"]]
end
end