Class: Datadog::Tracing::Transport::Native::TracerSpan

Inherits:
Object
  • Object
show all
Defined in:
ext/libdatadog_api/trace_exporter.c

Class Method Summary collapse

Class Method Details

._native_from_span(span) ⇒ Object

Factory



768
769
770
771
772
773
# File 'ext/libdatadog_api/trace_exporter.c', line 768

static VALUE _native_from_span(DDTRACE_UNUSED VALUE klass, VALUE span) {
  wrap_span_ctx ctx = {.span = span, .owner = {.span = NULL}};
  return rb_ensure(
      convert_and_wrap_span, (VALUE)&ctx,
      free_raw_span, (VALUE)&ctx.owner);
}