# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "autometrics" version = "2.0.0" authors = [ "Fiberplane ", "Evan Schwartz <3262610+emschwartz@users.noreply.github.com>", ] description = " Easily add metrics to your code that actually help you spot and debug issues in production. Built on Prometheus and OpenTelemetry." homepage = "https://autometrics.dev" documentation = "https://docs.rs/autometrics" readme = "README.md" keywords = [ "metrics", "prometheus", "opentelemetry", ] categories = [ "development-tools::debugging", "development-tools::profiling", ] license = "MIT OR Apache-2.0" repository = "https://github.com/autometrics-dev/autometrics-rs" resolver = "1" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [[bench]] name = "basic_benchmark" harness = false [dependencies.autometrics-macros] version = "2.0.0" [dependencies.http] version = "1.0.0" optional = true [dependencies.linkme] version = "0.3" [dependencies.metrics] version = "0.21" optional = true default-features = false [dependencies.metrics-exporter-prometheus] version = "0.12" optional = true default-features = false [dependencies.once_cell] version = "1.17" [dependencies.opentelemetry] version = "0.24" optional = true default-features = false [dependencies.opentelemetry-otlp] version = "0.17" optional = true default-features = false [dependencies.opentelemetry-prometheus] version = "0.17" optional = true [dependencies.opentelemetry_sdk] version = "0.24.1" features = ["metrics"] optional = true default-features = false [dependencies.prometheus] version = "0.13" optional = true default-features = false [dependencies.prometheus-client] version = "0.22" optional = true [dependencies.spez] version = "0.1.2" [dependencies.thiserror] version = "1" [dependencies.tracing] version = "0.1" optional = true [dependencies.tracing-opentelemetry] version = "0.25" optional = true default-features = false [dependencies.tracing-subscriber] version = "0.3" features = ["registry"] optional = true default-features = false [dev-dependencies.async-trait] version = "0.1.74" [dev-dependencies.axum] version = "0.7.2" features = ["tokio"] [dev-dependencies.criterion] version = "0.5" [dev-dependencies.http] version = "1.0.0" [dev-dependencies.opentelemetry] version = "0.24" [dev-dependencies.opentelemetry-stdout] version = "0.5" features = ["trace"] [dev-dependencies.prometheus-client] version = "0.22" [dev-dependencies.tokio] version = "1" features = ["full"] [dev-dependencies.tracing] version = "0.1" [dev-dependencies.tracing-subscriber] version = "0.3" [dev-dependencies.trybuild] version = "1.0" [dev-dependencies.uuid] version = "1" features = ["v4"] [dev-dependencies.vergen] version = "8.1" features = [ "git", "gitcl", ] [build-dependencies.cfg_aliases] version = "0.1" [features] custom-objective-latency = [] custom-objective-percentile = [] exemplars-tracing = [ "tracing", "tracing-subscriber", ] exemplars-tracing-opentelemetry = ["exemplars-tracing-opentelemetry-0_25"] exemplars-tracing-opentelemetry-0_25 = [ "dep:opentelemetry", "opentelemetry_sdk/trace", "tracing", "dep:tracing-opentelemetry", ] metrics = ["metrics-0_21"] metrics-0_21 = ["dep:metrics"] opentelemetry = ["opentelemetry-0_24"] opentelemetry-0_24 = [ "opentelemetry/metrics", "dep:prometheus", ] otel-push-exporter = [ "opentelemetry_sdk", "dep:opentelemetry", "opentelemetry-otlp", "opentelemetry-otlp/metrics", "opentelemetry-otlp/tls-roots", "opentelemetry-otlp/reqwest-rustls", ] otel-push-exporter-async-std = [ "otel-push-exporter", "opentelemetry_sdk/rt-async-std", ] otel-push-exporter-grpc = [ "otel-push-exporter", "opentelemetry-otlp/grpc-tonic", ] otel-push-exporter-http = [ "otel-push-exporter", "opentelemetry-otlp/http-proto", ] otel-push-exporter-tokio = [ "otel-push-exporter", "opentelemetry_sdk/rt-tokio", ] otel-push-exporter-tokio-current-thread = [ "otel-push-exporter", "opentelemetry_sdk/rt-tokio-current-thread", ] prometheus = ["prometheus-0_13"] prometheus-0_13 = ["dep:prometheus"] prometheus-client = ["prometheus-client-0_22"] prometheus-client-0_22 = ["dep:prometheus-client"] prometheus-exporter = [ "http", "metrics-exporter-prometheus", "opentelemetry-prometheus", "opentelemetry_sdk", "dep:prometheus", "dep:prometheus-client", ]