Creates a span. If no trace ID is specified, a random one is generated.
Creates a new ID for a span or trace.