2022-08-25 18:47:59 +00:00
|
|
|
defmodule OpentelemetryTesla.MixProject do
|
|
|
|
use Mix.Project
|
|
|
|
|
2024-02-05 00:18:14 +00:00
|
|
|
@version "2.3.0"
|
|
|
|
|
2022-08-25 18:47:59 +00:00
|
|
|
def project do
|
|
|
|
[
|
|
|
|
app: :opentelemetry_tesla,
|
2024-02-05 00:18:14 +00:00
|
|
|
version: @version,
|
|
|
|
elixir: "~> 1.11",
|
2022-08-25 18:47:59 +00:00
|
|
|
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"},
|
2024-02-05 17:34:51 +00:00
|
|
|
{:opentelemetry_telemetry, "~> 1.1.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"},
|
2024-01-17 18:27:19 +00:00
|
|
|
{:ex_doc, "~> 0.31", only: :dev, runtime: false},
|
2022-08-25 18:47:59 +00:00
|
|
|
{:bypass, "~> 2.1", only: :test},
|
|
|
|
{:jason, "~> 1.3", only: :test}
|
|
|
|
]
|
|
|
|
end
|
|
|
|
end
|