Skip to content

Commit 8eae661

Browse files
committed
example
1 parent 6e3789c commit 8eae661

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opentelemetry-stdout/src/trace/exporter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ impl SpanExporterBuilder {
9393
/// let exporter = SpanExporterBuilder::default()
9494
/// // Can be any function that can write formatted data
9595
/// // serde ecosystem crates for example provide such functions
96-
/// .with_encoder(|writer, data| Ok(serde_json::to_writer_pretty(writer, &data).unwrap()))
96+
/// .with_encoder(opentelemetry_stdout::pretty)
9797
/// .build();
9898
/// ```
9999
pub fn with_encoder(

0 commit comments

Comments
 (0)