File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
init-tracing-opentelemetry Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ opentelemetry_sdk = { workspace = true }
2929thiserror = " 1.0"
3030tonic = { workspace = true , optional = true , features = [" tls" ] }
3131tracing = { workspace = true }
32- tracing-logfmt-otel = { version = " 0.2 " , optional = true }
32+ tracing-logfmt = { version = " 0.3 " , optional = true }
3333tracing-opentelemetry = { workspace = true }
3434tracing-subscriber = { version = " 0.3" , default-features = false , features = [
3535 " ansi" ,
@@ -70,4 +70,4 @@ xray = ["dep:opentelemetry-aws"]
7070zipkin = [" dep:opentelemetry-zipkin" ]
7171tracing_subscriber_ext = [" dep:tracing-subscriber" , " otlp" ]
7272tls = [" tonic/tls" , " opentelemetry-otlp/tls" , " opentelemetry-otlp/tls-roots" ]
73- logfmt = [" dep:tracing-logfmt-otel " ]
73+ logfmt = [" dep:tracing-logfmt" ]
Original file line number Diff line number Diff line change @@ -38,7 +38,8 @@ pub fn build_logger_text<S>() -> Box<dyn Layer<S> + Send + Sync + 'static>
3838where
3939 S : Subscriber + for < ' a > LookupSpan < ' a > ,
4040{
41- Box :: new ( tracing_logfmt_otel:: layer ( ) )
41+ //FIXME tracing_logfmt use an old version of crates, how to inject trace_id and span_id into log?
42+ Box :: new ( tracing_logfmt:: layer ( ) )
4243}
4344
4445#[ must_use]
You can’t perform that action at this time.
0 commit comments