dylibso / dylibso/observe-sdk

Observe SDK: limit spans sent to sink

Open
#41 1 comment 0 reactions 1 assignee Assigned to @wikiwong View on GitHub
Dominant language
TypeScript
Stars
188
Forks
8
PR merge metrics
No merged PRs in 30d

Description

- [ ] Go SDK
- [ ] Rust SDK
- [ ] JS SDK

The default should be applied similarly to each SDK, but have a method for configuring this at the SDK level.

For example, a possible approach is:
```rust
let mut trace_ctx = adapter.start(&mut linker, &data)?;
trace_ctx.set_trace_depth(4);

// OR.. avoiding mutability and any additional method surface area:

let config = TraceConfig {
trace_depth: 4,
..default::Default(),
};
let trace_ctx = adapter.start(&mut linker, &data, &config)?;
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.