We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e3789c commit 8eae661Copy full SHA for 8eae661
opentelemetry-stdout/src/trace/exporter.rs
@@ -93,7 +93,7 @@ impl SpanExporterBuilder {
93
/// let exporter = SpanExporterBuilder::default()
94
/// // Can be any function that can write formatted data
95
/// // serde ecosystem crates for example provide such functions
96
- /// .with_encoder(|writer, data| Ok(serde_json::to_writer_pretty(writer, &data).unwrap()))
+ /// .with_encoder(opentelemetry_stdout::pretty)
97
/// .build();
98
/// ```
99
pub fn with_encoder(
0 commit comments