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 {
106
106
107
107
async fn current_span_context ( & mut self ) -> Result < wasi_otel:: SpanContext > {
108
108
// 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( ) ) ;
110
110
let span = context. span ( ) ;
111
111
let span_context = span. span_context ( ) ;
112
112
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 {
48
48
& self ,
49
49
_: spin_factors:: PrepareContext < T , Self > ,
50
50
) -> anyhow:: Result < Self :: InstanceBuilder > {
51
+ // TODO: Configuring the processor should move to init
51
52
// This will configure the exporter based on the OTEL_EXPORTER_* environment variables.
52
53
let exporter = match OtlpProtocol :: traces_protocol_from_env ( ) {
53
54
OtlpProtocol :: Grpc => opentelemetry_otlp:: SpanExporter :: builder ( )
You can’t perform that action at this time.
0 commit comments