1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! Pact plugin driver library for Rust
/// Recommended `tracing`/`log` filter directives to suppress gRPC transport-layer trace
/// noise (h2 frame encoding, tonic channel reconnects, hyper connection pool chatter).
///
/// Add this to `RUST_LOG` or compose it into your `EnvFilter` in the test harness:
/// ```text
/// RUST_LOG=warn,my_crate=debug,pact_plugin_driver=info,h2=warn,hyper=warn,hyper_util=warn,tonic=warn,tower=warn
/// ```
/// Or in code:
/// ```rust,ignore
/// use tracing_subscriber::EnvFilter;
/// let filter = EnvFilter::new(format!("info,{}", pact_plugin_driver::TRANSPORT_FILTER_DIRECTIVES));
/// ```
pub const TRANSPORT_FILTER_DIRECTIVES: &str = "h2=warn,hyper=warn,hyper_util=warn,tonic=warn,tower=warn";
pub
// Public because the V2-only message types are part of the driver's public API: the field-level
// operations (proposal 006) have no V1 equivalent, so the embedding Pact framework needs these
// types to implement `core_capabilities::CoreFieldMatcher`/`CoreFieldGenerator`.