2022-08-25 18:47:59 +00:00
|
|
|
defmodule OpentelemetryTesla.MixProject do
|
|
|
|
use Mix.Project
|
|
|
|
|
|
|
|
def project do
|
|
|
|
[
|
|
|
|
app: :opentelemetry_tesla,
|
2023-01-13 21:38:05 +00:00
|
|
|
version: "2.2.0",
|
2022-08-25 18:47:59 +00:00
|
|
|
elixir: "~> 1.10",
|
|
|
|
start_permanent: Mix.env() == :prod,
|
|
|
|
deps: deps(),
|
|
|
|
package: package(),
|
|
|
|
description: description(),
|
|
|
|
docs: docs()
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
defp docs() do
|
|
|
|
[
|
|
|
|
main: "readme",
|
2023-04-30 18:10:03 +00:00
|
|
|
extras: ["README.md"],
|
|
|
|
source_url_pattern:
|
|
|
|
"https://github.com/open-telemetry/opentelemetry-erlang-contrib/blob/main/instrumentation/opentelemetry_tesla/%{path}#L%{line}"
|
2022-08-25 18:47:59 +00:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
defp description() do
|
|
|
|
"Tesla middleware that creates OpenTelemetry spans and injects tracing headers into HTTP requests for Tesla clients."
|
|
|
|
end
|
|
|
|
|
|
|
|
defp package do
|
|
|
|
[
|
|
|
|
name: "opentelemetry_tesla",
|
|
|
|
licenses: ["Apache-2.0"],
|
|
|
|
links: %{
|
|
|
|
"GitHub" =>
|
|
|
|
"https://github.com/open-telemetry/opentelemetry-erlang-contrib/instrumentation/opentelemetry_tesla",
|
|
|
|
"OpenTelemetry Erlang" => "https://github.com/open-telemetry/opentelemetry-erlang",
|
2022-10-12 21:25:08 +00:00
|
|
|
"OpenTelemetry Erlang Contrib" =>
|
|
|
|
"https://github.com/open-telemetry/opentelemetry-erlang-contrib",
|
2022-08-25 18:47:59 +00:00
|
|
|
"OpenTelemetry.io" => "https://opentelemetry.io"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
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
|
|
|
|
[
|
2022-09-03 13:59:03 +00:00
|
|
|
{:opentelemetry, "~> 1.0", only: :test},
|
|
|
|
{:opentelemetry_api, "~> 1.0"},
|
2022-08-25 18:47:59 +00:00
|
|
|
{:opentelemetry_telemetry, "~> 1.0.0"},
|
2023-01-06 20:46:06 +00:00
|
|
|
{:opentelemetry_semantic_conventions, "~> 0.2"},
|
2022-08-25 18:47:59 +00:00
|
|
|
{:tesla, "~> 1.4"},
|
|
|
|
{:ex_doc, "~> 0.24", only: :dev, runtime: false},
|
|
|
|
{:bypass, "~> 2.1", only: :test},
|
|
|
|
{:jason, "~> 1.3", only: :test}
|
|
|
|
]
|
|
|
|
end
|
|
|
|
end
|