/// <inheritdoc/> public override ISpan StartSpan(string operationName, ISpan parent, SpanKind kind, SpanCreationOptions options) { if (parent == null) { parent = this.CurrentSpan; } return(SpanSdk.CreateFromParentSpan(operationName, parent, kind, options, this.sampler, this.tracerConfiguration, this.spanProcessor, this.LibraryResource)); }
/// <inheritdoc/> public override TelemetrySpan StartRootSpan(string operationName, SpanKind kind, SpanCreationOptions options) { return(SpanSdk.CreateRoot(operationName, kind, options, this.sampler, this.tracerConfiguration, this.spanProcessor, this.LibraryResource)); }