OptionalattributesInitial span attributes.
OptionalcarrierAn opaque carrier object (e.g. incoming headers, workflow params) from which trace context is extracted using the globally registered textmap propagator.
If both parent and carrier are provided, parent takes precedence.
The carrier is only used when parent is not set.
The value must be a non-null object whose string-valued properties are
read by the propagator (e.g. { traceparent: "00-…", tracestate: "…" }).
Non-object values are silently ignored.
OptionalkindSpan kind (default: SpanKind.INTERNAL).
OptionalnameOverride auto-detected span name.
OptionalparentParent context — either an existing Span or a W3C traceparent
string (e.g. "00-<traceId>-<spanId>-01").
When omitted the current active context is inherited.
Options for withTrace.