Cargo Features
Autometrics has no features set by default.
[dependencies]
autometrics = { version = "2.0.0", features = ["metrics-0_21", "opentelemetry-0_24", "prometheus-0_13", "prometheus-client-0_22", "metrics", "opentelemetry", "prometheus", "prometheus-client", "exemplars-tracing-opentelemetry", "prometheus-exporter", "otel-push-exporter", "otel-push-exporter-http", "otel-push-exporter-grpc", "otel-push-exporter-tokio", "otel-push-exporter-tokio-current-thread", "otel-push-exporter-async-std", "exemplars-tracing", "exemplars-tracing-opentelemetry-0_25", "custom-objective-percentile", "custom-objective-latency"] }
- metrics-0_21 metrics?
-
Metrics backends
Enables metrics ^0.21
Use for metrics feature
- opentelemetry-0_24 opentelemetry?
-
Enables prometheus and metrics of opentelemetry ^0.24
Used for opentelemetry feature
- prometheus-0_13 prometheus?
-
Enables prometheus
- prometheus-client-0_22 prometheus-client?
-
Enables prometheus-client
Used for prometheus-client feature
- metrics = metrics-0_21
-
Deprecated feature flags
- opentelemetry opentelemetry-0_24? = opentelemetry-0_24
- prometheus = prometheus-0_13
- prometheus-client = prometheus-client-0_22
- exemplars-tracing-opentelemetry = exemplars…opentelemetry-0_25
- prometheus-exporter = http, metrics-exporter-prometheus, opentelemetry-prometheus, opentelemetry_sdk
-
Misc
Enables prometheus and prometheus-client
Affects
autometrics::prometheus_exporter
… - otel-push-exporter otel-push-exporter-async-std? otel-push-exporter-grpc? otel-push-exporter-http? otel-push-exporter-tokio? otel-push-exporter…current-thread? = opentelemetry-otlp, opentelemetry_sdk
-
Enables opentelemetry ^0.24, metrics, reqwest-rustls and tls-roots of opentelemetry-otlp ^0.17
Affects
autometrics::otel_push_exporter
… - otel-push-exporter-http = otel-push-exporter
-
Enables http-proto of opentelemetry-otlp ^0.17
opentelemetry-otlp:
http binary
Affects
otel_push_exporter::init_http
,otel_push_exporter::init_http_with_timeout_period
… - otel-push-exporter-grpc = otel-push-exporter
-
Enables grpc-tonic of opentelemetry-otlp ^0.17
opentelemetry-otlp:
grpc using tonic
Affects
otel_push_exporter::init_grpc
,otel_push_exporter::init_grpc_with_timeout_period
… - otel-push-exporter-tokio = otel-push-exporter
-
Enables rt-tokio of opentelemetry_sdk ^0.24.1
- otel-push-exporter-tokio-current-thread = otel-push-exporter
-
Enables rt-tokio-current-thread of opentelemetry_sdk ^0.24.1
- otel-push-exporter-async-std = otel-push-exporter
-
Enables rt-async-std of opentelemetry_sdk ^0.24.1
- exemplars-tracing = tracing, tracing-subscriber
-
Exemplars
- exemplars-tracing-opentelemetry-0_25 exemplars-tracing-opentelemetry? = tracing
-
Enables opentelemetry ^0.24, trace of opentelemetry_sdk ^0.24.1 and tracing-opentelemetry ^0.25
Used for exemplars-tracing-opentelemetry feature
- custom-objective-percentile
-
Custom objectives
- custom-objective-latency
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- http prometheus-exporter?
-
Enables http
Used for prometheus-exporter feature
- metrics-exporter-prometheus prometheus-exporter?
- opentelemetry-prometheus prometheus-exporter?
- opentelemetry_sdk exemplars…opentelemetry-0_25? otel-push-exporter? otel-push-exporter-async-std? otel-push-exporter-tokio? otel-push-exporter…current-thread? prometheus-exporter?
-
Enables opentelemetry_sdk ^0.24.1
- opentelemetry-otlp otel-push-exporter? otel-push-exporter-grpc? otel-push-exporter-http?
-
Enables opentelemetry-otlp ^0.17
- tracing exemplars-tracing? exemplars…opentelemetry-0_25?
-
Enables tracing
Used for exemplars-tracing feature
- tracing-subscriber exemplars-tracing?