Cargo Features
apollo-federation has no features set by default.
[dependencies]
apollo-federation = { version = "2.0.0-preview.1", features = ["snapshot_tracing"] }
- snapshot_tracing = ron
-
This feature adds the
#[instrument]
macro to many function as well as logging statements that capture serialized versions of key data structures. This logging is gated behind a feature to avoid any unnecessary (even if small) runtime costs where this data will not be desired.
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.