createSpan
abstract fun createSpan(name: String, parent: EmbraceSpan? = null, autoTerminationMode: AutoTerminationMode = AutoTerminationMode.NONE): EmbraceSpan(source)
Create an EmbraceSpan with the given name and parent. Passing in a parent that is null result in a new trace with this EmbraceSpan as its root. Returns a no-op instance if a span cannot be created, e.g if the parent has not been started, the name is invalid, or some other factor due to the current conditions of the SDK.
Note: the EmbraceSpan created will not be started. For a method that creates and starts the span, use startSpan