File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
crates/factor-observe/src Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ impl wasi_otel::Host for InstanceState {
106106
107107 async fn current_span_context ( & mut self ) -> Result < wasi_otel:: SpanContext > {
108108 // TODO: The bug is that tracing::Span::current() is not returning anything
109- let context = tracing:: Span :: current ( ) . context ( ) ;
109+ let context = dbg ! ( dbg! ( tracing:: Span :: current( ) ) . context( ) ) ;
110110 let span = context. span ( ) ;
111111 let span_context = span. span_context ( ) ;
112112 let out: SpanContext = span_context. clone ( ) . into ( ) ;
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ impl Factor for ObserveFactor {
4848 & self ,
4949 _: spin_factors:: PrepareContext < T , Self > ,
5050 ) -> anyhow:: Result < Self :: InstanceBuilder > {
51+ // TODO: Configuring the processor should move to init
5152 // This will configure the exporter based on the OTEL_EXPORTER_* environment variables.
5253 let exporter = match OtlpProtocol :: traces_protocol_from_env ( ) {
5354 OtlpProtocol :: Grpc => opentelemetry_otlp:: SpanExporter :: builder ( )
You can’t perform that action at this time.
0 commit comments