Skip to content

Commit 1741e59

Browse files
committed
TODOs
Signed-off-by: Caleb Schoepp <caleb.schoepp@fermyon.com>
1 parent 8d22419 commit 1741e59

File tree

5 files changed

+12
-16
lines changed

5 files changed

+12
-16
lines changed

crates/factor-observe/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ pub(crate) struct State {
7777
///
7878
/// Only a reference ID to the guest span is held here. The actual guest span must be looked up
7979
/// in the `guest_spans` table using the reference ID.
80-
/// TODO: Fix comment
80+
/// TODO(Caleb): Fix comment
8181
pub(crate) active_spans: IndexMap<String, u32>,
8282

8383
/// Id of the last span emitted from within the host before entering the guest.
@@ -93,13 +93,13 @@ pub struct GuestSpan {
9393
pub inner: opentelemetry::global::BoxedSpan,
9494
}
9595

96-
/// TODO comment
96+
/// TODO(Caleb): comment
9797
pub struct ObserveContext {
9898
pub(crate) state: Option<Arc<RwLock<State>>>,
9999
}
100100

101101
impl ObserveContext {
102-
/// TODO: Comment
102+
/// TODO(Caleb): Comment
103103
pub fn from_prepare_context<T: RuntimeFactors, F: Factor>(
104104
prepare_context: &mut PrepareContext<T, F>,
105105
) -> anyhow::Result<Self> {

crates/factor-sqlite/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ tokio = { version = "1", features = ["macros", "rt"] }
2626
[lints]
2727
workspace = true
2828

29-
# TODO: Setup observe reparenting
29+
# TODO(Caleb): Setup observe reparenting

crates/factor-variables/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ tokio = { version = "1", features = ["macros", "rt"] }
2525
[lints]
2626
workspace = true
2727

28-
# TODO: Move instruments up a level
28+
# TODO(Caleb): Move instruments up a level

crates/world/src/conversions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ mod observe {
271271
type Error = wasmtime::Error;
272272

273273
fn try_from(sc: traces::SpanContext) -> anyhow::Result<Self> {
274-
// TODO: Endianess
274+
// TODO(Caleb): Endianess
275275
let trace_id: [u8; 16] = {
276276
let mut whole: [u8; 16] = [0; 16];
277277
let (one, two) = whole.split_at_mut(8);

tests/integration.rs

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,11 @@ mod integration_tests {
155155
Ok(())
156156
}
157157

158-
// TODO: Cleanup the fake collectors somehow
158+
// TODO(Caleb): Cleanup the fake collectors somehow
159+
// TODO(Caleb): Move these integration tests to the observe crate
159160

160161
#[tokio::test]
161-
// Test that basic otel tracing and context propagation works
162+
// Test that basic otel tracing and inbound/outbound context propagation works
162163
async fn otel_smoke_test() -> anyhow::Result<()> {
163164
let collector = FakeCollectorServer::start()
164165
.await
@@ -582,14 +583,9 @@ mod integration_tests {
582583
Ok(())
583584
}
584585

585-
// TODO: wasi_observe_set_event
586-
// TODO: wasi_observe_update_name
587-
// TODO: wasi_observe_set_link
588-
// TODO: wasi_observe_host_guest_host
589-
// TODO: semantics of closing a parent doesn't close child
590-
// TODO: inbound trace propagation
591-
// TODO: outbound trace propagation
592-
// TODO: Weird edge cases where a span is closed before we try to load it implicitly as parent or as observecontext thing.
586+
// TODO(Caleb): wasi_observe_set_link
587+
// TODO(Caleb): semantics of closing a parent doesn't close child
588+
// TODO(Caleb): Weird edge cases where a span is closed before we try to load it implicitly as parent or as observecontext thing.
593589

594590
#[test]
595591
/// Test dynamic environment variables

0 commit comments

Comments
 (0)