observe-sdk icon indicating copy to clipboard operation
observe-sdk copied to clipboard

Observe SDK: limit spans sent to sink

Open nilslice opened this issue 2 years ago • 1 comments

  • [ ] 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:

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)?;

nilslice avatar Jul 17 '23 21:07 nilslice

Goal is to reduce the depth of profiling. Solution may vary from what's defined here.

neuronicnobody avatar Aug 08 '23 18:08 neuronicnobody