Skip to content

Commit f893136

Browse files
committed
debugging with lann
Signed-off-by: Caleb Schoepp <[email protected]>
1 parent a8fcca4 commit f893136

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

crates/factor-observe/src/host.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

crates/factor-observe/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)